[Wicket-user] Multilinelabel with markup?

2006-03-28 Thread Geertjan Wielenga


I now understand how a markup label works and how a multiline label 
works. But how would I put markup in a multiline label?


-- Geertjan



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] problem with session invalidation and back button

2006-03-28 Thread Jaime De La Jara
Not exactly, when I'm in the login page I press the back button and  return to the home page (that seems ok since it was the last page),  then in the home page I use a submit button but since the session was  invalidated, wicket can not find info about the form being submitted.  All the problem reduces to this : How can I intercept the requests so I  can check the session status (I reimplemented the  isInstantiationAuthorized(Class componentClass) of the  IAuthorizationStrategy interface to check for authentication info but  it does not work in this case).Thanks.Jaime.Johan Compagner [EMAIL PROTECTED] wrote:  Let me get it straight first.You where on youre homepagethen you click on somethingwhere you invalidate the page and redirect to a login page.Then on that login page you go back to yo
 ure
 homepageand you expect the homepage to be there?  You invalidated the session and all its pages. So you can't go back.If you want this behaviour then just don't invalidate the session. But clear you login info.johan  On 3/27/06, Jaime De La Jara [EMAIL PROTECTED] wrote:  Hi, I have included a close session link  in the home page of my application (in one of the constructors), and in  the onClick method of the link I invalidate the session and throw a  RestartResponseException to the login page, but after I close the  session using the link and press the back button in the login page I  got the home page as it should be, but when I press a submit buttom in  the hom
 e page,
 I get a WicketRuntimeException, since the form component is not existant in the page. What can I be doing wrong?.Thanks in advance.Jaime.New   Yahoo! Messenger with Voice. Call regular phones from your PC for low, low rates.
		Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.

[Wicket-user] Understanding multiline labels and markup labels

2006-03-28 Thread Geertjan Wielenga



Hi all,

One thing I don't understand -- what's the scenario when you're using 
multiline labels and markup labels? Why can't you just do markup in the 
HTML file? What's the point in doing it on the Java side?


-- Geertjan



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] some firsttimer's questions ...

2006-03-28 Thread Alexander Lohse

Hi Igor,

thank you.

At what point would I need to add an attribute modifier?

I tried this, with no result:

private class NavigationLink extends BookmarkablePageLink {
public NavigationLink(final String id, final Class pageClass) {
super(id, pageClass);
setAutoEnable(false);
setIgnoreAttributeModifier(false);
}

protected void onBeginRequest() {
System.out.println(onBeginRequest());
if (linksTo(getPage())) {
getMarkupAttributes().add(selected, true);
} else {
getMarkupAttributes().remove(selected);
}
}
}

By the way onBeginRequest() is getting called twice on every page hit.

Thank you in advance,

Alex

Am 28.03.2006 um 01:05 schrieb Igor Vaynberg:

as far as 1) goes what you want is the opposite of our default  
behavior. instead of disabling the link you want to add a  
class=selected attr to it. fair enough.


you can create a subclass of bookmarkablepagelink that

1) calls setAutoEnable(false) in the constructor - this will  
prevent automatic disabling of the link


2) adds an attribute modifier that checks the page class that the  
link points to against the current page and if they match adds a  
class=selected attribute.


and then you are done.

-Igor

On 3/27/06, Martijn Dashorst [EMAIL PROTECTED]  wrote:1.  
No quick answer in my knowledge.


2. look at the niceurl example in wicket-examples. You won't be able
to remove all wicket parameters. WIcket /needs/ some of them to do its
work.

3. you don't tell the class what markup to use, that is a more
advanced feature, and I strongly recommend staying with the default
wicket strategy of classname == markup file name.

You are not required to have a 1:1 relationship between your classes
and your markup files. The only requirement is that a page hierarchy
has a markup file next to it.

class FooPage extends WebPage {}
class BarPage extends FooPage {}
class BeerPage extends FooPage {}

then only FooPage.html is required, or both BarPage.html and
BeerPage.html are required. You may also provide markup files for all
three, where FooPage.html is a basic layout mechanism.


On 3/28/06, Alexander Lohse [EMAIL PROTECTED] wrote:

Hi,

I am very new to wicket and evaluating it as a base for future  
projects.
I love the pure java approach wicket uses as I am currently  
working a

lot with swing.

However ... after my first impressions I am lost with some  
problems/

questions:

1. I fooled around with BookmarkablePageLink.setBeforeDisabledLink
(...), but: Can anyone give a short snippet how to produce the
following?

ul id=navigation
lia href= index.htmlHome/a/li
li class=selecteda href=some.htmlSomething/a/ 
li

lia href=other.htmlSome other thing/a/li
/ul

2. I worked really hard in PHP5 to avoid GET-Parameters in  
URLs. The

links wicket produces are pretty parameter-crowded. :-(
In some release-notes I read about a new Aliasing-Feature in 1.1+,
but could not find any documentation/tutorial. Are there  
examples out

there how to work with this?
Do these aliases work with dynamic information? Like record-IDs  
from

hibernate?

3. All examples I found require at least one markup-file per  
class.
How can I tell the class what file to use? For example when a  
set of

pages shall use the same template.

Thank you for any input ...

Alex




---
This SF.Net email is sponsored by xPML, a groundbreaking  
scripting language
that extends applications into web and mobile media. Attend the  
live webcast
and join the prime developer group breaking into this new  
coding territory!
http://sel.as-us.falkag.net/sel? 
cmd=lnkkid=110944bid=241720dat=121642

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




--
Wicket 1.2 is coming! Write Ajax applications without touching  
JavaScript!

-- http://wicketframework.org


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting  
language
that extends applications into web and mobile media. Attend the  
live webcast
and join the prime developer group breaking into this new coding  
territory!

http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking 

Re: [Wicket-user] Java Web Framework Sweet Spots

2006-03-28 Thread Ayodeji Aladejebi
hey eelco,
i read your entry on Wicket on the Sweet Spot and i must confess that Wicket still holds the strongest point against most other frameworks:
2 points struck me:

1. Developers learning OOP will not have to dissociate from that learning class while doing web development. this is a great point.
2. I see something like gmail and i dont see Flow Flow Web Flow... developers this days want to flip sophisticated Web UI panels from one point to the other and stuffs like that. It did not take me 5-20 minutes to map a file system on my systemto a Wicket Panel using Wicket Tree and then carry out some operations onClick. How lovely can web dev get. How can i achieve that with Flow flow flow...


anyway...you guys have hitting the real mark on what to expect in the future..please keep it up and rescue the growing younger java community from the menace of Flow Flow XML flow. 

thank yu
On 3/28/06, Jonathan Locke [EMAIL PROTECTED] wrote:

i don't really know enough about AOP to know if this is possible in the way i want it to happen. but even if it did work out, it would not be effective enough. what i'm talking about is not an occasional use kind of thing or any kind of cross cutting concern, but something that you would use absolutely constantly and with no particular pattern to the combinations. as a result, if it worked there probably there would be many, many times more enhanced types than actual types because of all the combinations you would make, not only when you declare classes, but also when you simply /use/ them. finally, this really isn't about injecting behavior into existing types, but rather creating new types that don't mix implementation at all. new types that are constructed modularly and cheaply. although you might be able to achieve some of the same effects, i really don't think the two things are similar in their usefulness. there are things that each can achieve that the other cannot. 


On 3/28/06, Johan Compagner [EMAIL PROTECTED]
 wrote: 

I guess with aspectj these kind of things could be injected?

On 3/28/06, Jonathan Locke [EMAIL PROTECTED] 
 wrote: 

i'm not on the user list right now so maybe you can forward... a couple of clarifications below...  jonathan


On 3/27/06, Igor Vaynberg  
[EMAIL PROTECTED] wrote:


i cant speak for HLS and what he had in mind. the blog JL wrote was a musing on how to improve the java language itself by introducing an idea of a mixed-type.the inheritance is defined by a isa relationship. so if A extends B - A isa B 
with multiple inheritance you haveA extends B,C means A isa B AND A isa Cthere are various problems that this introduces.what JL described is a system where you can declare an instance as [A,B] obj=[new A(), new B()] 


very close, but not quite. it's an [A B] all right, but you can't mix any two types. the mixable has to declare that it's mixable with the mixee interface or class through it's public API. i also think i want to change the name from mixing to enhancing because mixing has a lot of connotations having to do with implementation inheritance or delegation. what you're really doing is enhancing A with B like B enhanced A. in many cases, the new B() is implicit (if it has no parameters) and it attaches to the reference automatically so casting is not required on an [A B]. what's more enhancers can nest so you get layering effects. 




where the object you get back can be cast to either A or B - so identical to having something like class C { public A, public B } and doing obj=new C(); C.a=new A(); C.b=new B() - but supported natively on the jvm level w/out the overhead and obvious casting benefits. 
take a concrete example. wicket Component and MetaData objectcurrently Components can carry metadata, but not necessarily every component carries it. But in order for some to carry it we have to declare it in Component so it adds overhead for those componetns that do not. Also MetaData can be a self contained object with reusable methods such as addMetaData(key, value). 
so if we had mixed types we could take MetaData and separate it out of the Component. If a component you were instantiating needed metadata you would declare it as such:Component c=new Component() mixes new MetaData(); 



yeah, but what i'm suggesting is actually MetaData enhanced Component c = new Component()since MetaData doesn't require any parameters to enhance Component, there's nothing else on the new side of the assignment. the metadata is just added once the component is created. 




so now you have c which isa Component but is/not/ MetaData; however, you can also cast it to medata: MetaData md=(MetaData)c;


no, it IS a MetaData too. you would get IDE support for completions directly from the c local variable! c.setMetaData(...) would work because the reference c is actually an enhanced type reference. 




you can also declare functions as wanting a mixed type: foo([A,B] obj); 


you could but that would be fairly rare. the syntax would be foo(B 

[Wicket-user] Newbie using gmap examples

2006-03-28 Thread Harper,Cole M - JDC-PPO1-2
Title: Newbie using gmap examples






I am a Java/Wicket newbie and I would like to use the gmap examples in wicket-stuff. I am having trouble getting the example setup and running in Netbeans 5.0. Could someone lend me a hand in getting me started I would appreciate it.

Thanks





Re: [Wicket-user] DOJO tree and creating links without markup

2006-03-28 Thread Ramnivas Laddad




BookmarkablePageLink's constructor takes an 'id' as a parameter (which
cannot be null). 

I didn't see getUrl(Class clazz...) method. Where is this method
defined?

Thanks.

-Ramnivas

Igor Vaynberg wrote:
you can try using bookmarkable pages. you create create a
string url for them by calling getUrl(Class clazz)
  
-Igor
  
  
  On 3/27/06, Ramnivas Laddad
   [EMAIL PROTECTED]
wrote:
  Hello,

I am trying to create a DOJO-based tree (and if it turns out any good, I
hope to contribute it back).

DOJO's treenode (http://dojo.jot.com/WikiHome/TreeNode
) doesn't use
contained markups. Instead, it expects node information to be expressed
in DOJO-sepcific attributes such as the following:

div wicket:id="parent" dojoType="TreeNode" title="a

href=''My parent node/a"
div wicket:id="child" dojoType="TreeNode" title="a
href=''My child node/a"/div
/div

The problem is that I need those hrefs to point to Wicket-pages (say
using Link or PageLink), but creating a wicket link requires an id in
the corresponding markup. Given that the link is a part of an
attribute,

there isn't a place for the id for the link. Any ideas on best option in
this situation?

-Ramnivas


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language

that extends applications into web and mobile media. Attend the live
webcast
and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
  





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk=110944=241720=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] error message in a panel

2006-03-28 Thread Igor Vaynberg
i think in onbeginrequest() it is already too late to register a feedback message because you are already in the render phase and feedback messages have been collected.you need to register feedback messages in event handlers such as 
link.onclick(), button.onsubmit(), etc.-IgorOn 3/28/06, R.A [EMAIL PROTECTED]
 wrote:Hi.I'd like to set error messages for feedback panel in a panel class, not in a
form class.Is it possible?I failed to it by the following code. (Nothing output.)public class TestPanel extends Panel {public TestPanel() {add(new FeedbackPanel(feedback));
}protected void onBeginRequest() {if (...) {error(error occured);}}}Thank you.R.A
--View this message in context: http://www.nabble.com/error-message-in-a-panel-t1355119.html#a3627880Sent from the Wicket - User forum at 
Nabble.com.---This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] error message in a panel

2006-03-28 Thread Igor Vaynberg
ooh, but i think with the new session feedback messages you can in fact do it! just register the message on the session - getSession().error(). that should work... although this is not really a clean solution. a better solution would be to remove that code from onbeginrequest() if it can error out.
-IgorOn 3/28/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
i think in onbeginrequest() it is already too late to register a feedback message because you are already in the render phase and feedback messages have been collected.you need to register feedback messages in event handlers such as 
link.onclick(), button.onsubmit(), etc.-Igor
On 3/28/06, R.A [EMAIL PROTECTED]
 wrote:Hi.I'd like to set error messages for feedback panel in a panel class, not in a
form class.Is it possible?I failed to it by the following code. (Nothing output.)public class TestPanel extends Panel {public TestPanel() {add(new FeedbackPanel(feedback));
}protected void onBeginRequest() {if (...) {error(error occured);}}}Thank you.R.A

--View this message in context: http://www.nabble.com/error-message-in-a-panel-t1355119.html#a3627880
Sent from the Wicket - User forum at 
Nabble.com.---This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___Wicket-user mailing listWicket-user@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/wicket-user




Re: [Wicket-user] DOJO tree and creating links without markup

2006-03-28 Thread Igor Vaynberg
dont use a link, you dont need it to build the url, and its urlFor not getUrl sorry.ie:String url="">-IgorOn 3/28/06, 
Ramnivas Laddad [EMAIL PROTECTED] wrote:



  


BookmarkablePageLink's constructor takes an 'id' as a parameter (which
cannot be null). 

I didn't see getUrl(Class clazz...) method. Where is this method
defined?

Thanks.

-Ramnivas

Igor Vaynberg wrote:
you can try using bookmarkable pages. you create create a
string url for them by calling getUrl(Class clazz)
  
-Igor
  
  
  On 3/27/06, Ramnivas Laddad
   [EMAIL PROTECTED]
wrote:
  Hello,

I am trying to create a DOJO-based tree (and if it turns out any good, I
hope to contribute it back).

DOJO's treenode (http://dojo.jot.com/WikiHome/TreeNode
) doesn't use
contained markups. Instead, it expects node information to be expressed
in DOJO-sepcific attributes such as the following:

div wicket:id=parent dojoType=TreeNode title=a

href=''My parent node/a
div wicket:id=child dojoType=TreeNode title=a
href=''My child node/a/div
/div

The problem is that I need those hrefs to point to Wicket-pages (say
using Link or PageLink), but creating a wicket link requires an id in
the corresponding markup. Given that the link is a part of an
attribute,

there isn't a place for the id for the link. Any ideas on best option in
this situation?

-Ramnivas


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language

that extends applications into web and mobile media. Attend the live
webcast
and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642

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





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642

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



Re: [Wicket-user] some firsttimer's questions ...

2006-03-28 Thread Igor Vaynberg
if onbeginrequest() gets called twice then its a bug, please file it in our bug tracker, as well as a way to reproduce it if you have the time.i meant an actual AttributeModifier object, what you are doing is adding an attirbute into a map that has no affect on processing of request. 
from javadoc of getMarkupAttributes():/** * Get a copy of the markup's attributes which are associated with the * component. * p * Modifications to the map returned don't change the tags attributes. It is
 * just a copy.what you want is something like this (in constructor) {add(new SimpleAttributeModifier(class, selected) { boolean isEnabled() { return getPage().getClass().equals(clazz) }
-IgorOn 3/28/06, Alexander Lohse [EMAIL PROTECTED] wrote:
Hi Igor,thank you.At what point would I need to add an attribute modifier?I tried this, with no result:private class NavigationLink extends BookmarkablePageLink { public NavigationLink(final String id, final Class pageClass) {
 super(id, pageClass); setAutoEnable(false); setIgnoreAttributeModifier(false); } protected void onBeginRequest() { System.out.println
(onBeginRequest()); if (linksTo(getPage())) { getMarkupAttributes().add(selected, true); } else { getMarkupAttributes().remove(selected);
 } } }By the way onBeginRequest() is getting called twice on every page hit.Thank you in advance,AlexAm 28.03.2006 um 01:05 schrieb Igor Vaynberg:
 as far as 1) goes what you want is the opposite of our default behavior. instead of disabling the link you want to add a class=selected attr to it. fair enough. you can create a subclass of bookmarkablepagelink that
 1) calls setAutoEnable(false) in the constructor - this will prevent automatic disabling of the link 2) adds an attribute modifier that checks the page class that the link points to against the current page and if they match adds a
 class=selected attribute. and then you are done. -Igor On 3/27/06, Martijn Dashorst [EMAIL PROTECTED]
  wrote:1. No quick answer in my knowledge. 2. look at the niceurl example in wicket-examples. You won't be able to remove all wicket parameters. WIcket /needs/ some of them to do its
 work. 3. you don't tell the class what markup to use, that is a more advanced feature, and I strongly recommend staying with the default wicket strategy of classname == markup file name.
 You are not required to have a 1:1 relationship between your classes and your markup files. The only requirement is that a page hierarchy has a markup file next to it. class FooPage extends WebPage {}
 class BarPage extends FooPage {} class BeerPage extends FooPage {} then only FooPage.html is required, or both BarPage.html and BeerPage.html are required. You may also provide markup files for all
 three, where FooPage.html is a basic layout mechanism. On 3/28/06, Alexander Lohse [EMAIL PROTECTED] wrote: Hi,
 I am very new to wicket and evaluating it as a base for future projects. I love the pure java approach wicket uses as I am currently working a lot with swing. However ... after my first impressions I am lost with some
 problems/ questions: 1. I fooled around with BookmarkablePageLink.setBeforeDisabledLink (...), but: Can anyone give a short snippet how to produce the following?
 ul id=navigation lia href="" index.htmlHome/a/li li class=selecteda href=""
some.htmlSomething/a/ li lia href="" other thing/a/li /ul 2. I worked really hard in PHP5 to avoid GET-Parameters in
 URLs. The links wicket produces are pretty parameter-crowded. :-( In some release-notes I read about a new Aliasing-Feature in 1.1+, but could not find any documentation/tutorial. Are there
 examples out there how to work with this? Do these aliases work with dynamic information? Like record-IDs from hibernate? 3. All examples I found require at least one markup-file per
 class. How can I tell the class what file to use? For example when a set of pages shall use the same template. Thank you for any input ... Alex
 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the
 live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel? cmd=lnkkid=110944bid=241720dat=121642
 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/wicket-user -- Wicket 1.2 is coming! Write Ajax applications without touching _javascript_! -- 
http://wicketframework.org --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the
 live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
 ___ Wicket-user mailing list 

RE: [Wicket-user] Location of image files

2006-03-28 Thread Frank Silbermann








I wanted a panel constructed with an image
filename which would popup the image in another window. I wanted my code in one place, my static
image files stored in the WEB-INF folder of my web module, and couldnt
figure out how to make Image component find them. Igor replied:



If they live outside a jar in a
static location then why do you even need an Image component? Add a webmarkup
container with an attribute modifier that rewrites the src
attri to point at an image, and attach that to img markup.



What Igor
suggested is exactly what I want to do, but Im having trouble changing
the src attribute on my image display
page. My HTML for the pop-up panel
is:

html xmlns=http://www.w3.org/1999/xhtml xmlns:wicket=http://wicket.sourceforge.net/ xml:lang=en lang=en

head/head

body


img wicket:id = picture alt=Picture src=REPLACE_THIS.png/

/body

/html



My code is:



public class PicturePage extends WebPage {




public PicturePage( PageParameters pageParameters ) {

 String pictureFile
= pageParameters.getString(pictureFile);



 WebMarkupContainer
wmc = new WebMarkupContainer(picture);

 wmc.add( new AttributeModifier( src,
new Model(pictureFile) ) );

 add(
wmc );


}

}



But it is not changing my src attribute.
What am I doing wrong?










Re: [Wicket-user] Location of image files

2006-03-28 Thread Igor Vaynberg
attribute modifiers do not add attributes into your markup by default - they only modify the ones thats there, if you want to add an attribute you need to add another constructor argument:
new AttributeModifier( src, /true/, new Model(pictureFile) )also you cannot link to resources under WEB-INF so your static folder will have to be higher then that.
-IgorOn 3/28/06, Frank Silbermann [EMAIL PROTECTED]
 wrote:
















I wanted a panel constructed with an image
filename which would popup the image in another window. I wanted my code in one place, my static
image files stored in the WEB-INF folder of my web module, and couldn't
figure out how to make Image component find them. Igor replied:



"If they live outside a jar in a
static location then why do you even need an Image component? Add a webmarkup
container with an attribute modifier that rewrites the src
attri to point at an image, and attach that to img markup."



What Igor
suggested is exactly what I want to do, but I'm having trouble changing
the "src" attribute on my image display
page. My HTML for the pop-up panel
is:

html xmlns=
http://www.w3.org/1999/xhtml xmlns:wicket=http://wicket.sourceforge.net/ 
xml:lang=en lang=en

head/head

body


img wicket:id = picture alt=Picture src=REPLACE_THIS.png/

/body

/html



My code is:



public
 class PicturePage extends WebPage {




public PicturePage( PageParameters pageParameters ) {

 String pictureFile
= pageParameters.getString(pictureFile);



 WebMarkupContainer
wmc = new WebMarkupContainer(picture);

 wmc.add( new AttributeModifier( 
src,
new Model(pictureFile) ) );

 add(
wmc );


}

}



But it is not changing my "src" attribute.
What am I doing wrong?











[Wicket-user] AjaxSubmitButton as an Image?

2006-03-28 Thread Ali Zaid
Hay Guys;

Wonderful work!

I wanted to have the AjaxSubmitButton to be as an image, and then I
found out that AjaxSubmitButton check for the attibute type and throw
and exception if it's not a button, I modifed it and checked it with
an image, and it works :), can you please have AjaxSubmitButton accept
images too in the final release :), if this is not in the plan, I can
submit a request.

Thanks a million!

--
Regards, Ali
-
Fight back spam! Download the Blue Frog.
http://www.bluesecurity.com/register/s?user=YWxsb2NoaTI5Nzk%3D


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] AjaxSubmitButton as an Image?

2006-03-28 Thread Igor Vaynberg
done.-IgorOn 3/28/06, Ali Zaid [EMAIL PROTECTED] wrote:
Hay Guys;Wonderful work!I wanted to have the AjaxSubmitButton to be as an image, and then Ifound out that AjaxSubmitButton check for the attibute type and throwand exception if it's not a button, I modifed it and checked it with
an image, and it works :), can you please have AjaxSubmitButton acceptimages too in the final release :), if this is not in the plan, I cansubmit a request.Thanks a million!--Regards, Ali
-Fight back spam! Download the Blue Frog.http://www.bluesecurity.com/register/s?user=YWxsb2NoaTI5Nzk%3D---
This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642___
Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user



Re: [Wicket-user] AjaxSubmitButton as an Image?

2006-03-28 Thread Ali Zaid
Igor;

My mistake, I just checked it again, and I made a fast judgment,
Sorry, it seems image doesn't work with Ajax :(, it submit the form in
a normal way, unless you have found work around.

I'm really sorry for this mistake. I will recheck again and update
you. again, Really sorry.

Regards, Ali

On 3/28/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 done.

 -Igor



 On 3/28/06, Ali Zaid [EMAIL PROTECTED] wrote:
 
  Hay Guys;

 Wonderful work!

 I wanted to have the AjaxSubmitButton to be as an image, and then I
 found out that AjaxSubmitButton check for the attibute type and throw
 and exception if it's not a button, I modifed it and checked it with
 an image, and it works :), can you please have AjaxSubmitButton accept
 images too in the final release :), if this is not in the plan, I can
 submit a request.

 Thanks a million!

 --
 Regards, Ali
  -
 Fight back spam! Download the Blue Frog.
 http://www.bluesecurity.com/register/s?user=YWxsb2NoaTI5Nzk%3D


 ---
 This SF.Net email is sponsored by xPML, a groundbreaking scripting language
 that extends applications into web and mobile media. Attend the live webcast
 and join the prime developer group breaking into this new coding territory!
 http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




--
Regards, Ali
-
Fight back spam! Download the Blue Frog.
http://www.bluesecurity.com/register/s?user=YWxsb2NoaTI5Nzk%3D


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] AjaxSubmitButton as an Image?

2006-03-28 Thread Ali Zaid
Ok;

If you don't hate me :), I did reCheck and it didn't work, I don't
know, maybe we make a link that submit a form in Ajax?

Really sorry about this again (I guess this is why it was checking for
a button in the first place)

Regards, Ali

On 3/28/06, Ali Zaid [EMAIL PROTECTED] wrote:
 Igor;

 My mistake, I just checked it again, and I made a fast judgment,
 Sorry, it seems image doesn't work with Ajax :(, it submit the form in
 a normal way, unless you have found work around.

 I'm really sorry for this mistake. I will recheck again and update
 you. again, Really sorry.

 Regards, Ali

 On 3/28/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
  done.
 
  -Igor
 
 
 
  On 3/28/06, Ali Zaid [EMAIL PROTECTED] wrote:
  
   Hay Guys;
 
  Wonderful work!
 
  I wanted to have the AjaxSubmitButton to be as an image, and then I
  found out that AjaxSubmitButton check for the attibute type and throw
  and exception if it's not a button, I modifed it and checked it with
  an image, and it works :), can you please have AjaxSubmitButton accept
  images too in the final release :), if this is not in the plan, I can
  submit a request.
 
  Thanks a million!
 
  --
  Regards, Ali
   -
  Fight back spam! Download the Blue Frog.
  http://www.bluesecurity.com/register/s?user=YWxsb2NoaTI5Nzk%3D
 
 
  ---
  This SF.Net email is sponsored by xPML, a groundbreaking scripting language
  that extends applications into web and mobile media. Attend the live webcast
  and join the prime developer group breaking into this new coding territory!
  http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 


 --
 Regards, Ali
 -
 Fight back spam! Download the Blue Frog.
 http://www.bluesecurity.com/register/s?user=YWxsb2NoaTI5Nzk%3D



--
Regards, Ali
-
Fight back spam! Download the Blue Frog.
http://www.bluesecurity.com/register/s?user=YWxsb2NoaTI5Nzk%3D


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] AjaxSubmitButton as an Image?

2006-03-28 Thread Igor Vaynberg
i tweaked it and it now should work with button/image/submitgive it a try.-IgorOn 3/28/06, Ali Zaid 
[EMAIL PROTECTED] wrote:Igor;My mistake, I just checked it again, and I made a fast judgment,
Sorry, it seems image doesn't work with Ajax :(, it submit the form ina normal way, unless you have found work around.I'm really sorry for this mistake. I will recheck again and updateyou. again, Really sorry.
Regards, AliOn 3/28/06, Igor Vaynberg [EMAIL PROTECTED] wrote: done. -Igor On 3/28/06, Ali Zaid 
[EMAIL PROTECTED] wrote: Hay Guys; Wonderful work! I wanted to have the AjaxSubmitButton to be as an image, and then I found out that AjaxSubmitButton check for the attibute type and throw
 and exception if it's not a button, I modifed it and checked it with an image, and it works :), can you please have AjaxSubmitButton accept images too in the final release :), if this is not in the plan, I can
 submit a request. Thanks a million! -- Regards, Ali- Fight back spam! Download the Blue Frog. 
http://www.bluesecurity.com/register/s?user=YWxsb2NoaTI5Nzk%3D --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language
 that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! 
http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642 ___ Wicket-user mailing list 
Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user--Regards, Ali
-Fight back spam! Download the Blue Frog.http://www.bluesecurity.com/register/s?user=YWxsb2NoaTI5Nzk%3D---
This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642___
Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user



RE: [Wicket-user] Location of image files

2006-03-28 Thread Frank Silbermann








But my src attribute to be
modified _is_ in my HTML, as you
can see (value shown is REPLACE_THIS.png). The problem is that the existing src
attributes value was not replaced.
What do I need to do differently?



-Original Message-
From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Igor Vaynberg
Sent: Tuesday, March 28, 2006
11:56 AM
To:
wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user]
Location of image files



attribute modifiers do
not add attributes into your markup by default - they only modify the ones
thats there, if you want to add an attribute you need to add another
constructor argument: 

new AttributeModifier( src, /true/, new Model(pictureFile) )

also you cannot link to resources under WEB-INF so your static folder will have
to be higher then that. 

-Igor





On 3/28/06, Frank Silbermann [EMAIL PROTECTED] 
wrote:





I wanted a panel
constructed with an image filename which would popup the image in another
window. I wanted my code in one place, my static image files stored in
the WEB-INF folder of my web module, and couldn't figure out how to make Image
component find them. Igor replied:



If they live
outside a jar in a static location then why do you even need an Image
component? Add a webmarkup container with an attribute modifier that
rewrites the src attri to point at an image, and attach that to img
markup.



What Igor suggested is exactly what I want
to do, but I'm having trouble changing the src attribute on my
image display page. My HTML for the pop-up panel is:

html xmlns= http://www.w3.org/1999/xhtml
xmlns:wicket=http://wicket.sourceforge.net/
xml:lang=en lang=en

head/head

body


img wicket:id = picture alt=Picture
src="">

/body

/html



My code is:



public class PicturePage
extends WebPage {



 public
PicturePage( PageParameters pageParameters ) {

 String
pictureFile = pageParameters.getString(pictureFile);




WebMarkupContainer wmc = new WebMarkupContainer(picture);


wmc.add( new AttributeModifier(  src, new Model(pictureFile)
) );

 add(
wmc );

 }

}



But it is not changing my
src attribute. What am I doing wrong?


















Re: [Wicket-user] Location of image files

2006-03-28 Thread Igor Vaynberg
it should work, what does the finished output look like. btw for tag w/out body you should use WebComponent not WebMarkupContainer.-IgorOn 3/28/06, 
Frank Silbermann [EMAIL PROTECTED] wrote:

















But my "src" attribute to be
modified _is_ in my HTML, as you
can see (value shown is "REPLACE_THIS.png"). The problem is that the existing "src"
attribute's value was not replaced.
What do I need to do differently?



-Original Message-
From:
[EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED]]
On Behalf Of Igor Vaynberg
Sent: Tuesday, March 28, 2006
11:56 AM
To:
wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user]
Location of image files



attribute modifiers do
not add attributes into your markup by default - they only modify the ones
thats there, if you want to add an attribute you need to add another
constructor argument: 

new AttributeModifier( src, /true/, new Model(pictureFile) )

also you cannot link to resources under WEB-INF so your static folder will have
to be higher then that. 

-Igor





On 3/28/06, Frank Silbermann 
[EMAIL PROTECTED] 
wrote:





I wanted a panel
constructed with an image filename which would popup the image in another
window. I wanted my code in one place, my static image files stored in
the WEB-INF folder of my web module, and couldn't figure out how to make Image
component find them. Igor replied:



If they live
outside a jar in a static location then why do you even need an Image
component? Add a webmarkup container with an attribute modifier that
rewrites the src attri to point at an image, and attach that to img
markup.



What Igor suggested is exactly what I want
to do, but I'm having trouble changing the src attribute on my
image display page. My HTML for the pop-up panel is:

html xmlns=
 http://www.w3.org/1999/xhtml
xmlns:wicket=http://wicket.sourceforge.net/
xml:lang=en lang=en

head/head

body


img wicket:id = picture alt=Picture
src="">

/body

/html



My code is:



public class PicturePage
extends WebPage {



 public
PicturePage( PageParameters pageParameters ) {

 String
pictureFile = pageParameters.getString(pictureFile);




WebMarkupContainer wmc = new WebMarkupContainer(picture);


wmc.add( new AttributeModifier(  src, new Model(pictureFile)
) );

 add(
wmc );

 }

}



But it is not changing my
src attribute. What am I doing wrong?



















Re: [Wicket-user] AjaxSubmitButton as an Image?

2006-03-28 Thread Ali Zaid
Igor;

I did give it a try, and it works as I said, it submit the form in a
normal way not though Ajax, so page do refresh.

Regards, Ali

On 3/28/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 i tweaked it and it now should work with button/image/submit

 give it a try.

 -Igor



 On 3/28/06, Ali Zaid  [EMAIL PROTECTED] wrote:
 
 Igor;

 My mistake, I just checked it again, and I made a fast judgment,
 Sorry, it seems image doesn't work with Ajax :(, it submit the form in
 a normal way, unless you have found work around.

 I'm really sorry for this mistake. I will recheck again and update
 you. again, Really sorry.

 Regards, Ali

 On 3/28/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
  done.
 
  -Igor
 
 
 
  On 3/28/06, Ali Zaid  [EMAIL PROTECTED] wrote:
  
   Hay Guys;
 
  Wonderful work!
 
  I wanted to have the AjaxSubmitButton to be as an image, and then I
  found out that AjaxSubmitButton check for the attibute type and throw
  and exception if it's not a button, I modifed it and checked it with
  an image, and it works :), can you please have AjaxSubmitButton accept
  images too in the final release :), if this is not in the plan, I can
  submit a request.
 
  Thanks a million!
 
  --
  Regards, Ali
   -
  Fight back spam! Download the Blue Frog.
 
 http://www.bluesecurity.com/register/s?user=YWxsb2NoaTI5Nzk%3D
 
 
  ---
  This SF.Net email is sponsored by xPML, a groundbreaking scripting
 language
  that extends applications into web and mobile media. Attend the live
 webcast
  and join the prime developer group breaking into this new coding
 territory!
 
 http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 


 --
 Regards, Ali
  -
 Fight back spam! Download the Blue Frog.
 http://www.bluesecurity.com/register/s?user=YWxsb2NoaTI5Nzk%3D


 ---

 This SF.Net email is sponsored by xPML, a groundbreaking scripting language
 that extends applications into web and mobile media. Attend the live webcast
 and join the prime developer group breaking into this new coding territory!
 http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




--
Regards, Ali
-
Fight back spam! Download the Blue Frog.
http://www.bluesecurity.com/register/s?user=YWxsb2NoaTI5Nzk%3D


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] AjaxSubmitButton as an Image?

2006-03-28 Thread Igor Vaynberg
you wrote that email w/out testing eh :)update and try again-IgorOn 3/28/06, Ali Zaid [EMAIL PROTECTED]
 wrote:Igor;I did give it a try, and it works as I said, it submit the form in a
normal way not though Ajax, so page do refresh.Regards, AliOn 3/28/06, Igor Vaynberg [EMAIL PROTECTED] wrote: i tweaked it and it now should work with button/image/submit
 give it a try. -Igor On 3/28/06, Ali Zaid  [EMAIL PROTECTED] wrote:  Igor; My mistake, I just checked it again, and I made a fast judgment,
 Sorry, it seems image doesn't work with Ajax :(, it submit the form in a normal way, unless you have found work around. I'm really sorry for this mistake. I will recheck again and update
 you. again, Really sorry. Regards, Ali On 3/28/06, Igor Vaynberg [EMAIL PROTECTED] wrote:  done. 
  -Igor On 3/28/06, Ali Zaid  [EMAIL PROTECTED] wrote:   Hay Guys;   Wonderful work!
   I wanted to have the AjaxSubmitButton to be as an image, and then I  found out that AjaxSubmitButton check for the attibute type and throw  and exception if it's not a button, I modifed it and checked it with
  an image, and it works :), can you please have AjaxSubmitButton accept  images too in the final release :), if this is not in the plan, I can  submit a request.   Thanks a million!
   --  Regards, Ali -  Fight back spam! Download the Blue Frog.  
http://www.bluesecurity.com/register/s?user=YWxsb2NoaTI5Nzk%3D---  This SF.Net email is sponsored by xPML, a groundbreaking scripting
 language  that extends applications into web and mobile media. Attend the live webcast  and join the prime developer group breaking into this new coding territory! 
 http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642  ___
  Wicket-user mailing list  Wicket-user@lists.sourceforge.net  
https://lists.sourceforge.net/lists/listinfo/wicket-user   -- Regards, Ali- Fight back spam! Download the Blue Frog. 
http://www.bluesecurity.com/register/s?user=YWxsb2NoaTI5Nzk%3D --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language
 that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! 
http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642 ___ Wicket-user mailing list 
Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user--Regards, Ali
-Fight back spam! Download the Blue Frog.http://www.bluesecurity.com/register/s?user=YWxsb2NoaTI5Nzk%3D---
This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642___
Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user



[Wicket-user] Re: Drag and Drop Tree

2006-03-28 Thread Steve Knight
Can anyone give me some tips on how to best incorporate the scriptaculous drag and drop functionality into the Wicket Tree component? Is there another component that I should use as a guideline?Thanks.Steve
On 3/27/06, Steve Knight [EMAIL PROTECTED] wrote:
Has anyone implemented a Drag and Drop version of the Tree component yet? Right now I have a working tree and I'd like to add the ability to rearrange nodes using drag and drop. I am looking at using wicket-contrib-scriptaculous to see if it can be incorporated into the tree component.
Steve




RE: [Wicket-user] Location of image files

2006-03-28 Thread Frank Silbermann












-Original Message-
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Igor Vaynberg
Sent: Tuesday, March 28, 2006 12:46 PM
To:
wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user]
Location of image files



it should work, what does the finished output look
like. btw for tag w/out body you should use WebComponent not
WebMarkupContainer.

-Igor



OK, I start with a class called PicturePage with the following HTML. Note that there is a src
attribute hardcoded to BagsPosition.png
for the sake of previewing:



html xmlns=http://www.w3.org/1999/xhtml
xmlns:wicket=http://wicket.sourceforge.net/
xml:lang=en lang=en

head


link rel=stylesheet
type=text/css href=style.css/

/head

body


img wicket:id = picture alt=Picture src=BagsPosition.png/

/body

/html



My PicturePage
class with the changes youve suggested is:



package common.components.pictures;

import wicket.markup.html.WebPage;

import wicket.PageParameters;

import wicket.AttributeModifier;

import wicket.model.Model;

import wicket.markup.html.WebComponent;



public class PicturePage extends WebPage {




public PicturePage( PageParameters pageParameters ) {

 String pictureFile
= pageParameters.getString(pictureFile);



 WebComponent
wmc = new WebComponent(picture);

 wmc.add( new AttributeModifier( src,
true, new Model(pictureFile) ) );

 add( wmc );


}

}



My test-page with two links, each of which
should cause an image to pop-up was rendered by Wicket as:



html xmlns=http://www.w3.org/1999/xhtml xmlns:wicket=http://wicket.sourceforge.net/ xml:lang=en lang=enhead link rel=stylesheet type=text/css href=style.css//headbody span wicket:id=link1wicket:panel a href=/SpssWebModule/commonTest?wicket:bookmarkablePage=popupPageMap:common.components.pictures.PicturePageamp;filename=PrimaryChutes.png wicket:id=popupLink onclick=window.open(href, '', 'scrollbars=yes,location=no,menuBar=no,resizable=yes,status=no,toolbar=no,width=1000,height=500'); return false; span wicket:id=popupTextPrimary Chutes/span /a /wicket:panel/span br / span wicket:id=link2wicket:panel a href=/SpssWebModule/commonTest?wicket:bookmarkablePage=popupPageMap:common.components.pictures.PicturePageamp;filename=Secondary.png wicket:id=popupLink onclick=window.open(href, '', 'scrollbars=yes,location=no,menuBar=no,resizable=yes,status=no,toolbar=no,width=1000,height=500'); return false; span wicket:id=popupTextSecondary/span /a /wicket:panel/span/body/html



Note that the page parameters seem to be
set correctly to two different image files (PrimaryChutes.png and Secondary.png). Clicking on the first one yields the
original hardcoded default picture (BagsPosition.png). When I view page source I get:



html xmlns=http://www.w3.org/1999/xhtml xmlns:wicket=http://wicket.sourceforge.net/ xml:lang=en lang=enhead link rel=stylesheet type=text/css href=style.css//headbody img wicket:id=picture src=BagsPosition.png alt=Picture//body/html



Note that my src
attribute was not replaced. In
fact, it appears as if nothing at all has been done to the HTML file upon which
PicturePage is based.










Re: [Wicket-user] AjaxSubmitButton as an Image?

2006-03-28 Thread Ali Zaid
Igor;

if you mean this:

protected void onComponentTag(ComponentTag tag)
{
checkComponentTag(tag, input);

final String type = tag.getAttributes().getString(type);
if (!button.equals(type)  
!image.equals(type)!submit.equals(type))
{
findMarkupStream().throwMarkupException(
Component  + getId() +  must be 
applied to a tag with 'type'
+  attribute matching 
'submit', 'button' or 'image', not ' +
type + ');
}

super.onComponentTag(tag);
}


I did test it, and it still submit in a normal way (not ajax), is
there any other class/file that was updated with this one? is there
anything that I should include in the markup?

mine looks like this

input type=image name=imageField
src=../../../../../../images/accept.png
wicket:id=submitAjaxSubmitButton/

Regards,
Ali


On 3/28/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 you wrote that email w/out testing eh :)

 update and try again

 -Igor



 On 3/28/06, Ali Zaid [EMAIL PROTECTED]  wrote:
 
 Igor;

 I did give it a try, and it works as I said, it submit the form in a
 normal way not though Ajax, so page do refresh.

 Regards, Ali

 On 3/28/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
  i tweaked it and it now should work with button/image/submit
 
  give it a try.
 
  -Igor
 
 
 
  On 3/28/06, Ali Zaid  [EMAIL PROTECTED] wrote:
  
  Igor;
 
  My mistake, I just checked it again, and I made a fast judgment,
  Sorry, it seems image doesn't work with Ajax :(, it submit the form in
  a normal way, unless you have found work around.
 
  I'm really sorry for this mistake. I will recheck again and update
   you. again, Really sorry.
 
  Regards, Ali
 
  On 3/28/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
   done.
  
-Igor
  
  
  
   On 3/28/06, Ali Zaid  [EMAIL PROTECTED] wrote:
   
Hay Guys;
  
   Wonderful work!
  
   I wanted to have the AjaxSubmitButton to be as an image, and then I
   found out that AjaxSubmitButton check for the attibute type and throw
   and exception if it's not a button, I modifed it and checked it with
   an image, and it works :), can you please have AjaxSubmitButton accept
   images too in the final release :), if this is not in the plan, I can
   submit a request.
  
   Thanks a million!
  
   --
   Regards, Ali
-
   Fight back spam! Download the Blue Frog.
  
 
 http://www.bluesecurity.com/register/s?user=YWxsb2NoaTI5Nzk%3D
  
  
   ---
   This SF.Net email is sponsored by xPML, a groundbreaking scripting
  language
   that extends applications into web and mobile media. Attend the live
  webcast
   and join the prime developer group breaking into this new coding
  territory!
  
 
 http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  
 https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
 
 
  --
  Regards, Ali
   -
  Fight back spam! Download the Blue Frog.
 
 http://www.bluesecurity.com/register/s?user=YWxsb2NoaTI5Nzk%3D
 
 
  ---
 
  This SF.Net email is sponsored by xPML, a groundbreaking scripting
 language
  that extends applications into web and mobile media. Attend the live
 webcast
  and join the prime developer group breaking into this new coding
 territory!
 
 http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 


 --
 Regards, Ali
  -
 Fight back spam! Download the Blue Frog.
 http://www.bluesecurity.com/register/s?user=YWxsb2NoaTI5Nzk%3D


 ---

 This SF.Net email is sponsored by xPML, a groundbreaking scripting language
 that extends applications into web and mobile media. Attend the live webcast
 and join the prime developer group breaking into this new coding territory!
 http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




--
Regards, Ali
-
Fight back spam! Download the Blue Frog.
http://www.bluesecurity.com/register/s?user=YWxsb2NoaTI5Nzk%3D


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642

RE: [Wicket-user] Location of image files

2006-03-28 Thread Frank Silbermann








Ah, I think I see. It looks like a disagreement over the name of
the page parameter  filename versus pictureFile.

Rather than setting the parameter to null,
it leaves it as it was. Thanks!



-Original Message-
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Frank Silbermann
Sent: Tuesday, March 28, 2006 1:08 PM
To:
wicket-user@lists.sourceforge.net
Subject: RE: [Wicket-user]
Location of image files







-Original Message-
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Igor Vaynberg
Sent: Tuesday, March 28, 2006 12:46 PM
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user]
Location of image files



it should work, what does the finished output look
like. btw for tag w/out body you should use WebComponent not
WebMarkupContainer.

-Igor



OK, I start
with a class called PicturePage with the following HTML. Note that there is a src attribute hardcoded
to BagsPosition.png for the sake of previewing:



html
xmlns=http://www.w3.org/1999/xhtml
xmlns:wicket=http://wicket.sourceforge.net/ xml:lang=en
lang=en

head

 link rel=stylesheet
type=text/css href="">

/head

body

 img wicket:id =
picture alt=Picture
src="">

/body

/html



My PicturePage class with
the changes youve suggested is:



package
common.components.pictures;

import
wicket.markup.html.WebPage;

import
wicket.PageParameters;

import
wicket.AttributeModifier;

import
wicket.model.Model;

import
wicket.markup.html.WebComponent;



public class PicturePage
extends WebPage {



 public PicturePage( PageParameters
pageParameters ) {

 String pictureFile =
pageParameters.getString(pictureFile);



 WebComponent wmc = new
WebComponent(picture);

 wmc.add( new AttributeModifier(
src, true, new Model(pictureFile) )
);

 add( wmc );

 }

}



My test-page with two
links, each of which should cause an image to pop-up was rendered by Wicket as:



html xmlns=http://www.w3.org/1999/xhtml xmlns:wicket=http://wicket.sourceforge.net/ xml:lang=en lang=enhead link rel=stylesheet type=text/css href=style.css//headbody span wicket:id=link1wicket:panel a href=/SpssWebModule/commonTest?wicket:bookmarkablePage=popupPageMap:common.components.pictures.PicturePageamp;filename=PrimaryChutes.png wicket:id=popupLink onclick=window.open(href, '', 'scrollbars=yes,location=no,menuBar=no,resizable=yes,status=no,toolbar=no,width=1000,height=500'); return false; span wicket:id=popupTextPrimary Chutes/span /a /wicket:panel/span br / span wicket:id=link2wicket:panel a href=/SpssWebModule/commonTest?wicket:bookmarkablePage=popupPageMap:common.components.pictures.PicturePageamp;filename=Secondary.png wicket:id=popupLink onclick=window.open(href, '', 'scrollbars=yes,location=no,menuBar=no,resizable=yes,status=no,toolbar=no,width=1000,height=500'); return false; span wicket:id=popupTextSecondary/span /a /wicket:panel/span/body/html



Note that the page parameters seem to be set correctly to two
different image files (PrimaryChutes.png
and Secondary.png).
Clicking on the first one yields the original hardcoded default picture
(BagsPosition.png). When I
view page source I get:



html xmlns=http://www.w3.org/1999/xhtml xmlns:wicket=http://wicket.sourceforge.net/ xml:lang=en lang=enhead link rel=stylesheet type=text/css href=style.css//headbody img wicket:id=picture src=BagsPosition.png alt=Picture//body/html



Note that my src attribute was not replaced. In fact, it appears as if nothing at all has
been done to the HTML file upon which PicturePage is based.










Re: [Wicket-user] AjaxSubmitButton as an Image?

2006-03-28 Thread Igor Vaynberg
no i added something else, what does the generated onclick handler look like?-IgorOn 3/28/06, Ali Zaid 
[EMAIL PROTECTED] wrote:Igor;if you mean this:protected void onComponentTag(ComponentTag tag)
{checkComponentTag(tag, input);final String type = tag.getAttributes().getString(type);if (!button.equals(type)  !image.equals(type)!submit.equals(type))
{findMarkupStream().throwMarkupException(Component  + getId() +  must be applied to a tag with 'type'
+  attribute matching 'submit', 'button' or 'image', not ' +type + ');}super.onComponentTag(tag);
}I did test it, and it still submit in a normal way (not ajax), isthere any other class/file that was updated with this one? is thereanything that I should include in the markup?mine looks like this
input type=image name=imageFieldsrc="">wicket:id=submitAjaxSubmitButton/Regards,AliOn 3/28/06, Igor Vaynberg 
[EMAIL PROTECTED] wrote: you wrote that email w/out testing eh :) update and try again -Igor On 3/28/06, Ali Zaid 
[EMAIL PROTECTED]  wrote:  Igor; I did give it a try, and it works as I said, it submit the form in a normal way not though Ajax, so page do refresh.
 Regards, Ali On 3/28/06, Igor Vaynberg [EMAIL PROTECTED] wrote:  i tweaked it and it now should work with button/image/submit
   give it a try.   -Igor On 3/28/06, Ali Zaid  [EMAIL PROTECTED] wrote:
Igor;   My mistake, I just checked it again, and I made a fast judgment,  Sorry, it seems image doesn't work with Ajax :(, it submit the form in  a normal way, unless you have found work around.
   I'm really sorry for this mistake. I will recheck again and update you. again, Really sorry.   Regards, Ali   On 3/28/06, Igor Vaynberg 
[EMAIL PROTECTED] wrote:   done.-Igor On 3/28/06, Ali Zaid  
[EMAIL PROTECTED] wrote: Hay Guys; Wonderful work! I wanted to have the AjaxSubmitButton to be as an image, and then I
   found out that AjaxSubmitButton check for the attibute type and throw   and exception if it's not a button, I modifed it and checked it with   an image, and it works :), can you please have AjaxSubmitButton accept
   images too in the final release :), if this is not in the plan, I can   submit a request. Thanks a million! --
   Regards, Ali  -   Fight back spam! Download the Blue Frog.
http://www.bluesecurity.com/register/s?user=YWxsb2NoaTI5Nzk%3D   ---   This SF.Net email is sponsored by xPML, a groundbreaking scripting
  language   that extends applications into web and mobile media. Attend the live  webcast   and join the prime developer group breaking into this new coding  territory!
http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642   ___
   Wicket-user mailing list   Wicket-user@lists.sourceforge.net   
https://lists.sourceforge.net/lists/listinfo/wicket-user--  Regards, Ali -  Fight back spam! Download the Blue Frog.
  http://www.bluesecurity.com/register/s?user=YWxsb2NoaTI5Nzk%3D---
   This SF.Net email is sponsored by xPML, a groundbreaking scripting language  that extends applications into web and mobile media. Attend the live webcast  and join the prime developer group breaking into this new coding
 territory!  http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642  ___
  Wicket-user mailing list  Wicket-user@lists.sourceforge.net  
https://lists.sourceforge.net/lists/listinfo/wicket-user   -- Regards, Ali- Fight back spam! Download the Blue Frog. 
http://www.bluesecurity.com/register/s?user=YWxsb2NoaTI5Nzk%3D --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language
 that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! 
http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642 ___ Wicket-user mailing list 
Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user--Regards, Ali
-Fight back spam! Download the Blue Frog.http://www.bluesecurity.com/register/s?user=YWxsb2NoaTI5Nzk%3D---
This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642___
Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user



Re: [Wicket-user] AjaxSubmitButton as an Image?

2006-03-28 Thread Ali Zaid
ok, I only changed the class, what other files where changed?

On 3/28/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 no i added something else, what does the generated onclick handler look
 like?

 -Igor



 On 3/28/06, Ali Zaid  [EMAIL PROTECTED] wrote:
 
 Igor;

 if you mean this:

 protected void onComponentTag(ComponentTag tag)
 {
 checkComponentTag(tag, input);

 final String type = tag.getAttributes().getString(type);
 if (!button.equals(type) 
 !image.equals(type)!submit.equals(type))
 {

 findMarkupStream().throwMarkupException(
 Component  +
 getId() +  must be applied to a tag with 'type'
  +
  attribute matching 'submit', 'button' or 'image', not ' +
 type + ');
 }

 super.onComponentTag(tag);
 }


 I did test it, and it still submit in a normal way (not ajax), is
 there any other class/file that was updated with this one? is there
 anything that I should include in the markup?

 mine looks like this

 input type=image name=imageField
 src=../../../../../../images/accept.png
 wicket:id=submitAjaxSubmitButton/

 Regards,
 Ali


 On 3/28/06, Igor Vaynberg  [EMAIL PROTECTED] wrote:
  you wrote that email w/out testing eh :)
 
  update and try again
 
  -Igor
 
 
 
  On 3/28/06, Ali Zaid  [EMAIL PROTECTED]  wrote:
  
  Igor;
 
  I did give it a try, and it works as I said, it submit the form in a
  normal way not though Ajax, so page do refresh.
 
  Regards, Ali
 
  On 3/28/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
   i tweaked it and it now should work with button/image/submit
  
   give it a try.
  
   -Igor
  
  
  
   On 3/28/06, Ali Zaid  [EMAIL PROTECTED] wrote:

   Igor;
  
   My mistake, I just checked it again, and I made a fast judgment,
   Sorry, it seems image doesn't work with Ajax :(, it submit the form in
   a normal way, unless you have found work around.
  
   I'm really sorry for this mistake. I will recheck again and update
you. again, Really sorry.
  
   Regards, Ali
  
   On 3/28/06, Igor Vaynberg  [EMAIL PROTECTED] wrote:
done.
   
 -Igor
   
   
   
On 3/28/06, Ali Zaid  [EMAIL PROTECTED] wrote:

 Hay Guys;
   
Wonderful work!
   
I wanted to have the AjaxSubmitButton to be as an image, and then I
found out that AjaxSubmitButton check for the attibute type and throw
and exception if it's not a button, I modifed it and checked it with
an image, and it works :), can you please have AjaxSubmitButton accept
images too in the final release :), if this is not in the plan, I can
submit a request.
   
Thanks a million!
   
--
 Regards, Ali
 -
Fight back spam! Download the Blue Frog.
   
  
 
 http://www.bluesecurity.com/register/s?user=YWxsb2NoaTI5Nzk%3D
   
   
   
 ---
This SF.Net email is sponsored by xPML, a groundbreaking scripting
   language
that extends applications into web and mobile media. Attend the live
   webcast
and join the prime developer group breaking into this new coding
   territory!
   
  
 
 http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
   
  https://lists.sourceforge.net/lists/listinfo/wicket-user
   
   
  
  
   --
   Regards, Ali
-
   Fight back spam! Download the Blue Frog.
  
 
 http://www.bluesecurity.com/register/s?user=YWxsb2NoaTI5Nzk%3D
  
  
   ---
  
   This SF.Net email is sponsored by xPML, a groundbreaking scripting
  language
   that extends applications into web and mobile media. Attend the live
  webcast
   and join the prime developer group breaking into this new coding
  territory!
  
 
 http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  
 https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
 
 
  --
  Regards, Ali
   -
  Fight back spam! Download the Blue Frog.
 
 http://www.bluesecurity.com/register/s?user=YWxsb2NoaTI5Nzk%3D
 
 
  ---
 
  This SF.Net email is sponsored by xPML, a groundbreaking scripting
 language
  that extends applications into web and mobile media. Attend the live
 webcast
  and join the prime developer group breaking into this new coding
 territory!
 
 http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 


 --
 Regards, Ali
  -
 Fight back spam! Download the Blue Frog.
 

Re: [Wicket-user] AjaxSubmitButton as an Image?

2006-03-28 Thread Igor Vaynberg
i only changed the ajax submit button class. what does your onclick handler look like?-IgorOn 3/28/06, Ali Zaid 
[EMAIL PROTECTED] wrote:ok, I only changed the class, what other files where changed?
On 3/28/06, Igor Vaynberg [EMAIL PROTECTED] wrote: no i added something else, what does the generated onclick handler look like?
 -Igor On 3/28/06, Ali Zaid  [EMAIL PROTECTED] wrote:  Igor; if you mean this: protected void onComponentTag(ComponentTag tag)
 { checkComponentTag(tag, input); final String type = tag.getAttributes().getString(type); if (!button.equals(type) 
 !image.equals(type)!submit.equals(type)) { findMarkupStream().throwMarkupException( Component  +
 getId() +  must be applied to a tag with 'type'+  attribute matching 'submit', 'button' or 'image', not ' + type + ');
 } super.onComponentTag(tag); } I did test it, and it still submit in a normal way (not ajax), is there any other class/file that was updated with this one? is there
 anything that I should include in the markup? mine looks like this input type=image name=imageField src=""
 wicket:id=submitAjaxSubmitButton/ Regards, Ali On 3/28/06, Igor Vaynberg  [EMAIL PROTECTED] wrote:
  you wrote that email w/out testing eh :)   update and try again   -Igor On 3/28/06, Ali Zaid  
[EMAIL PROTECTED]  wrote:Igor;   I did give it a try, and it works as I said, it submit the form in a  normal way not though Ajax, so page do refresh.
   Regards, Ali   On 3/28/06, Igor Vaynberg [EMAIL PROTECTED] wrote:   i tweaked it and it now should work with button/image/submit
 give it a try. -Igor On 3/28/06, Ali Zaid  
[EMAIL PROTECTED] wrote: Igor; My mistake, I just checked it again, and I made a fast judgment,   Sorry, it seems image doesn't work with Ajax :(, it submit the form in
   a normal way, unless you have found work around. I'm really sorry for this mistake. I will recheck again and update  you. again, Really sorry.  
   Regards, Ali On 3/28/06, Igor Vaynberg  [EMAIL PROTECTED] wrote:done.   
   -Igor On 3/28/06, Ali Zaid  [EMAIL PROTECTED] wrote:
   Hay Guys;   Wonderful work!   I wanted to have the AjaxSubmitButton to be as an image, and then Ifound out that AjaxSubmitButton check for the attibute type and throw
and exception if it's not a button, I modifed it and checked it withan image, and it works :), can you please have AjaxSubmitButton acceptimages too in the final release :), if this is not in the plan, I can
submit a request.   Thanks a million!   --   Regards, Ali   -
Fight back spam! Download the Blue Frog.   http://www.bluesecurity.com/register/s?user=YWxsb2NoaTI5Nzk%3D
  ---This SF.Net email is sponsored by xPML, a groundbreaking scripting
   languagethat extends applications into web and mobile media. Attend the live   webcastand join the prime developer group breaking into this new coding
   territory!   http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 --   Regards, Ali  -   Fight back spam! Download the Blue Frog.
http://www.bluesecurity.com/register/s?user=YWxsb2NoaTI5Nzk%3D   --- This SF.Net
 email is sponsored by xPML, a groundbreaking scripting  language   that extends applications into web and mobile media. Attend the live  webcast   and join the prime developer group breaking into this new coding
  territory!http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
   ___   Wicket-user mailing list   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user--
  Regards, Ali -  Fight back spam! Download the Blue Frog.  http://www.bluesecurity.com/register/s?user=YWxsb2NoaTI5Nzk%3D
---   This SF.Net email is sponsored by xPML, a groundbreaking scripting language  that extends applications into web and mobile media. Attend the live
 webcast  and join the prime developer group breaking into this new coding territory!  
http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642  ___  Wicket-user mailing list  
Wicket-user@lists.sourceforge.net  https://lists.sourceforge.net/lists/listinfo/wicket-user  
 -- Regards, Ali- Fight back spam! Download the Blue Frog. http://www.bluesecurity.com/register/s?user=YWxsb2NoaTI5Nzk%3D
 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast
 and join the prime developer group breaking into 

Re: [Wicket-user] Importing static HTML

2006-03-28 Thread Juergen Donnerstag
On 3/28/06, Matthias Albert [EMAIL PROTECTED] wrote:
 My problem is to show the body content of a static HTML file inside a
 table cell of a Wicket page. Which file is selected dynamically.


 I now managed to read the whole HTML file and assign its content to a
 label. The problem is that every single character is shown, with many
 charcters escaped like lt;tablegt; for table.


 The HTML file needs to be parsed and only the elements inside the body
 element returned without being escaped.


Try label.setEscapeModelStrings(true)

 Does anyone have an idea how to achieve this? I could do a XSLT
 preprocessing if nesessary.


You've read the html file already, right. Make it simple and search
for body and /body and remove everything before and after this tag
(including the body tag I guess)

Juergen


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] AjaxSubmitButton as an Image?

2006-03-28 Thread Ali Zaid
input type=image
id=fullContactPanel_fullContactListView_2_fullContactPanel_fullContactForm_submitAjaxSubmitButton
name=imageField src=../../../../../../images/accept.png
onclick=var 
wicketAjaxCallMade=wicketSubmitFormById('fullContactPanel_fullContactListView_2_fullContactPanel_fullContactForm',
'/Yakhdhoor?wicket:interface=:2:fullContactPanel:fullContactListView:2:fullContactPanel:fullContactForm:submitAjaxSubmitButton:-1:IUnversionedBehaviorListeneramp;wicket:behaviorId=0'
);; return true;; return false;

On 3/28/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 i only changed the ajax submit button class. what does your onclick handler
 look like?


 -Igor


 On 3/28/06, Ali Zaid  [EMAIL PROTECTED] wrote:
  ok, I only changed the class, what other files where changed?
 
  On 3/28/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
   no i added something else, what does the generated onclick handler look
   like?
  
   -Igor
  
  
  
   On 3/28/06, Ali Zaid  [EMAIL PROTECTED] wrote:
   
   Igor;
  
   if you mean this:
  
   protected void onComponentTag(ComponentTag tag)
   {
   checkComponentTag(tag, input);
  
   final String type =
 tag.getAttributes().getString(type);
   if (!button.equals(type) 
   !image.equals(type)!submit.equals(type))
   {
  
   findMarkupStream().throwMarkupException(
   Component  +
   getId() +  must be applied to a tag with 'type'
  
  +
attribute matching 'submit', 'button' or 'image', not ' +
   type + ');
   }
  
   super.onComponentTag(tag);
   }
  
  
   I did test it, and it still submit in a normal way (not ajax), is
   there any other class/file that was updated with this one? is there
   anything that I should include in the markup?
  
   mine looks like this
  
   input type=image name=imageField
   src=../../../../../../images/accept.png
   wicket:id=submitAjaxSubmitButton/
  
   Regards,
   Ali
  
  
   On 3/28/06, Igor Vaynberg  [EMAIL PROTECTED] wrote:
you wrote that email w/out testing eh :)
   
update and try again
   
-Igor
   
   
   
On 3/28/06, Ali Zaid  [EMAIL PROTECTED]  wrote:

Igor;
   
I did give it a try, and it works as I said, it submit the form in a
normal way not though Ajax, so page do refresh.
   
Regards, Ali
   
On 3/28/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 i tweaked it and it now should work with button/image/submit

 give it a try.

 -Igor



 On 3/28/06, Ali Zaid  [EMAIL PROTECTED] wrote:
  
 Igor;

 My mistake, I just checked it again, and I made a fast judgment,
 Sorry, it seems image doesn't work with Ajax :(, it submit the form
 in
 a normal way, unless you have found work around.

 I'm really sorry for this mistake. I will recheck again and update
  you. again, Really sorry.

 Regards, Ali

 On 3/28/06, Igor Vaynberg  [EMAIL PROTECTED] wrote:
  done.
 
   -Igor
 
 
 
  On 3/28/06, Ali Zaid  [EMAIL PROTECTED] wrote:
  
   Hay Guys;
 
  Wonderful work!
 
  I wanted to have the AjaxSubmitButton to be as an image, and then
 I
  found out that AjaxSubmitButton check for the attibute type and
 throw
  and exception if it's not a button, I modifed it and checked it
 with
  an image, and it works :), can you please have AjaxSubmitButton
 accept
  images too in the final release :), if this is not in the plan, I
 can
  submit a request.
 
  Thanks a million!
 
  --
   Regards, Ali
   -
  Fight back spam! Download the Blue Frog.
 

   
  
 http://www.bluesecurity.com/register/s?user=YWxsb2NoaTI5Nzk%3D
 
 
 
   ---
  This SF.Net email is sponsored by xPML, a groundbreaking scripting
 language
  that extends applications into web and mobile media. Attend the
 live
 webcast
  and join the prime developer group breaking into this new coding
 territory!
 

   
  
 http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
 
   
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 


 --
 Regards, Ali
  -
 Fight back spam! Download the Blue Frog.

   
  
 http://www.bluesecurity.com/register/s?user=YWxsb2NoaTI5Nzk%3D



 ---

 This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
 that extends applications into web and mobile media. Attend the live
webcast
 and join the prime developer group breaking into this new coding
territory!

   
  
 

Re: [Wicket-user] AjaxSubmitButton as an Image?

2006-03-28 Thread Igor Vaynberg
you are not up to date all the way.-IgorOn 3/28/06, Ali Zaid [EMAIL PROTECTED] wrote:
input type=imageid=fullContactPanel_fullContactListView_2_fullContactPanel_fullContactForm_submitAjaxSubmitButton
name=imageField src=""> wicketAjaxCallMade=wicketSubmitFormById('fullContactPanel_fullContactListView_2_fullContactPanel_fullContactForm',
'/Yakhdhoor?wicket:interface=:2:fullContactPanel:fullContactListView:2:fullContactPanel:fullContactForm:submitAjaxSubmitButton:-1:IUnversionedBehaviorListeneramp;wicket:behaviorId=0');; return true;; return false;
On 3/28/06, Igor Vaynberg [EMAIL PROTECTED] wrote: i only changed the ajax submit button class. what does your onclick handler look like?
 -Igor On 3/28/06, Ali Zaid  [EMAIL PROTECTED] wrote:  ok, I only changed the class, what other files where changed?
   On 3/28/06, Igor Vaynberg [EMAIL PROTECTED] wrote:   no i added something else, what does the generated onclick handler look
   like? -Igor On 3/28/06, Ali Zaid  [EMAIL PROTECTED]
 wrote:  Igor; if you mean this: protected void onComponentTag(ComponentTag tag)   {
   checkComponentTag(tag, input); final String type = tag.getAttributes().getString(type);   if (!button.equals(type) 
   !image.equals(type)!submit.equals(type))   { findMarkupStream().throwMarkupException(   Component  +
   getId() +  must be applied to a tag with 'type'  +attribute matching 'submit', 'button' or 'image', not ' +   type + ');
   } super.onComponentTag(tag);   }   I did test it, and it still submit in a normal way (not ajax), is
   there any other class/file that was updated with this one? is there   anything that I should include in the markup? mine looks like this  
   input type=image name=imageField   src="">   wicket:id=submitAjaxSubmitButton/
 Regards,   Ali   On 3/28/06, Igor Vaynberg  [EMAIL PROTECTED] wrote:
you wrote that email w/out testing eh :)   update and try again   -Igor  
   On 3/28/06, Ali Zaid  [EMAIL PROTECTED]  wrote:Igor;   
I did give it a try, and it works as I said, it submit the form in anormal way not though Ajax, so page do refresh.   Regards, Ali
   On 3/28/06, Igor Vaynberg [EMAIL PROTECTED] wrote: i tweaked it and it now should work with button/image/submit
 give it a try. -Igor
 On 3/28/06, Ali Zaid  [EMAIL PROTECTED] wrote: Igor; My mistake, I just checked it again, and I made a fast judgment,
 Sorry, it seems image doesn't work with Ajax :(, it submit the form in a normal way, unless you have found work around. I'm really sorry for this mistake. I will recheck again and update
you. again, Really sorry. Regards, Ali On 3/28/06, Igor Vaynberg  
[EMAIL PROTECTED] wrote:  done.  -Igor   
  On 3/28/06, Ali Zaid  [EMAIL PROTECTED] wrote:   Hay Guys; 
  Wonderful work!   I wanted to have the AjaxSubmitButton to be as an image, and then I  found out that AjaxSubmitButton check for the attibute type and
 throw  and exception if it's not a button, I modifed it and checked it with  an image, and it works :), can you please have AjaxSubmitButton
 accept  images too in the final release :), if this is not in the plan, I can  submit a request.   Thanks a million!
   -- Regards, Ali -  Fight back spam! Download the Blue Frog.
   http://www.bluesecurity.com/register/s?user=YWxsb2NoaTI5Nzk%3D
  ---  This SF.Net
 email is sponsored by xPML, a groundbreaking scripting language  that extends applications into web and mobile media. Attend the live webcast
  and join the prime developer group breaking into this new coding territory!
   http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642  ___
  Wicket-user mailing list  Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user  
 -- Regards, Ali- Fight back spam! Download the Blue Frog.
  http://www.bluesecurity.com/register/s?user=YWxsb2NoaTI5Nzk%3D
 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting
language that extends applications into web and mobile media. Attend the livewebcast and join the prime developer group breaking into this new coding
territory!  http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  --Regards, Ali   -Fight back spam! Download the Blue Frog.   
   

Re: [Wicket-user] Re: Drag and Drop Tree

2006-03-28 Thread Eelco Hillenius
I have no experience with that myself. The working tree you have
there, is that based on Javascript? Ramnivas is working on a DOJO tree
as he says in another current thread on this list. That might be a
good dnd starting point too.

I don't know how you guys set it up, but if you let it be backed by a
proper tree model such as that old fashioned tree is that is in
wicket-core, you get all the extra's like inserting and deleting nodes
with it.

Eelco


On 3/28/06, Steve Knight [EMAIL PROTECTED] wrote:
 Can anyone give me some tips on how to best incorporate the scriptaculous
 drag and drop functionality into the Wicket Tree component?  Is there
 another component that I should use as a guideline?

 Thanks.

 Steve


 On 3/27/06, Steve Knight [EMAIL PROTECTED] wrote:
 
  Has anyone implemented a Drag and Drop version of the Tree component yet?
 Right now I have a working tree and I'd like to add the ability to rearrange
 nodes using drag and drop.  I am looking at using
 wicket-contrib-scriptaculous to see if it can be incorporated into the tree
 component.
 
 
  Steve
 




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] AjaxSubmitButton as an Image?

2006-03-28 Thread Ali Zaid
hummm...

Sorry Igor, I will work on it, tell me, how can I can download the
whole source code?

On 3/28/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 you are not up to date all the way.


 -Igor


 On 3/28/06, Ali Zaid [EMAIL PROTECTED] wrote:
  input type=image
 
 id=fullContactPanel_fullContactListView_2_fullContactPanel_fullContactForm_submitAjaxSubmitButton
  name=imageField
 src=../../../../../../images/accept.png
  onclick=var
 wicketAjaxCallMade=wicketSubmitFormById('fullContactPanel_fullContactListView_2_fullContactPanel_fullContactForm',
 
 '/Yakhdhoor?wicket:interface=:2:fullContactPanel:fullContactListView:2:fullContactPanel:fullContactForm:submitAjaxSubmitButton:-1:IUnversionedBehaviorListeneramp;wicket:behaviorId=0'
  );; return true;; return false;
 
  On 3/28/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
   i only changed the ajax submit button class. what does your onclick
 handler
   look like?
  
  
   -Igor
  
  
   On 3/28/06, Ali Zaid  [EMAIL PROTECTED] wrote:
ok, I only changed the class, what other files where changed?
   
On 3/28/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 no i added something else, what does the generated onclick handler
 look
 like?

 -Igor



 On 3/28/06, Ali Zaid  [EMAIL PROTECTED]  wrote:
 
 Igor;

 if you mean this:

 protected void onComponentTag(ComponentTag tag)
 {
 checkComponentTag(tag, input);

 final String type =
   tag.getAttributes().getString(type);
 if (!button.equals(type) 
 !image.equals(type)!submit.equals(type))
 {

 findMarkupStream().throwMarkupException(
 Component
  +
 getId() +  must be applied to a tag with 'type'

+
  attribute matching 'submit', 'button' or 'image', not ' +
 type + ');
 }

 super.onComponentTag(tag);
 }


 I did test it, and it still submit in a normal way (not ajax), is
 there any other class/file that was updated with this one? is there
 anything that I should include in the markup?

 mine looks like this

 input type=image name=imageField
 src=../../../../../../images/accept.png
 wicket:id=submitAjaxSubmitButton/

 Regards,
 Ali


 On 3/28/06, Igor Vaynberg  [EMAIL PROTECTED] wrote:
  you wrote that email w/out testing eh :)
 
  update and try again
 
  -Igor
 
 
 
  On 3/28/06, Ali Zaid  [EMAIL PROTECTED]  wrote:
  
  Igor;
 
  I did give it a try, and it works as I said, it submit the form in
 a
  normal way not though Ajax, so page do refresh.
 
  Regards, Ali
 
  On 3/28/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
   i tweaked it and it now should work with button/image/submit
  
   give it a try.
  
   -Igor
  
  
  
   On 3/28/06, Ali Zaid  [EMAIL PROTECTED] wrote:

   Igor;
  
   My mistake, I just checked it again, and I made a fast judgment,
   Sorry, it seems image doesn't work with Ajax :(, it submit the
 form
   in
   a normal way, unless you have found work around.
  
   I'm really sorry for this mistake. I will recheck again and
 update
you. again, Really sorry.
  
   Regards, Ali
  
   On 3/28/06, Igor Vaynberg  [EMAIL PROTECTED] wrote:
done.
   
 -Igor
   
   
   
On 3/28/06, Ali Zaid  [EMAIL PROTECTED] wrote:

 Hay Guys;
   
Wonderful work!
   
I wanted to have the AjaxSubmitButton to be as an image, and
 then
   I
found out that AjaxSubmitButton check for the attibute type
 and
   throw
and exception if it's not a button, I modifed it and checked
 it
   with
an image, and it works :), can you please have
 AjaxSubmitButton
   accept
images too in the final release :), if this is not in the
 plan, I
   can
submit a request.
   
Thanks a million!
   
--
 Regards, Ali
 -
Fight back spam! Download the Blue Frog.
   
  
 

  
 http://www.bluesecurity.com/register/s?user=YWxsb2NoaTI5Nzk%3D
   
   
   

 ---
This SF.Net email is sponsored by xPML, a groundbreaking
 scripting
   language
that extends applications into web and mobile media. Attend
 the
   live
   webcast
and join the prime developer group breaking into this new
 coding
   territory!
   
  
 

  
 http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
   
 ___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
   
 
  
 

Re: [Wicket-user] AjaxSubmitButton as an Image?

2006-03-28 Thread Igor Vaynberg
just check it out from svn-IgorOn 3/28/06, Ali Zaid [EMAIL PROTECTED] wrote:
hummm...Sorry Igor, I will work on it, tell me, how can I can download thewhole source code?On 3/28/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 you are not up to date all the way. -Igor On 3/28/06, Ali Zaid [EMAIL PROTECTED] wrote:  input type=image
  id=fullContactPanel_fullContactListView_2_fullContactPanel_fullContactForm_submitAjaxSubmitButton  name=imageField src=""
  > wicketAjaxCallMade=wicketSubmitFormById('fullContactPanel_fullContactListView_2_fullContactPanel_fullContactForm',  '/Yakhdhoor?wicket:interface=:2:fullContactPanel:fullContactListView:2:fullContactPanel:fullContactForm:submitAjaxSubmitButton:-1:IUnversionedBehaviorListeneramp;wicket:behaviorId=0'
  );; return true;; return false;   On 3/28/06, Igor Vaynberg [EMAIL PROTECTED] wrote:   i only changed the ajax submit button class. what does your onclick
 handler   look like?   -Igor   On 3/28/06, Ali Zaid  
[EMAIL PROTECTED] wrote:ok, I only changed the class, what other files where changed?   On 3/28/06, Igor Vaynberg 
[EMAIL PROTECTED] wrote: no i added something else, what does the generated onclick handler look like? -Igor
 On 3/28/06, Ali Zaid  [EMAIL PROTECTED]  wrote: 
 Igor; if you mean this: protected void onComponentTag(ComponentTag tag) {
 checkComponentTag(tag, input); final String type =   tag.getAttributes().getString(type);
 if (!button.equals(type)  !image.equals(type)!submit.equals(type)) {
 findMarkupStream().throwMarkupException( Component  + getId() +  must be applied to a tag with 'type'
  +  attribute matching 'submit', 'button' or 'image', not ' + type + '); }
 super.onComponentTag(tag); } I did test it, and it still submit in a normal way (not ajax), is
 there any other class/file that was updated with this one? is there anything that I should include in the markup? mine looks like this
 input type=image name=imageField src=""> wicket:id=submitAjaxSubmitButton/
 Regards, Ali On 3/28/06, Igor Vaynberg  
[EMAIL PROTECTED] wrote:  you wrote that email w/out testing eh :)   update and try again 
  -Igor On 3/28/06, Ali Zaid  
[EMAIL PROTECTED]  wrote:Igor;   I did give it a try, and it works as I said, it submit the form in
 a  normal way not though Ajax, so page do refresh.   Regards, Ali   On 3/28/06, Igor Vaynberg 
[EMAIL PROTECTED] wrote:   i tweaked it and it now should work with button/image/submit give it a try.
 -Igor On 3/28/06, Ali Zaid  
[EMAIL PROTECTED] wrote: Igor; My mistake, I just checked it again, and I made a fast judgment,
   Sorry, it seems image doesn't work with Ajax :(, it submit the form   in   a normal way, unless you have found work around.
 I'm really sorry for this mistake. I will recheck again and update  you. again, Really sorry.  
   Regards, Ali On 3/28/06, Igor Vaynberg  [EMAIL PROTECTED]
 wrote:done.  -Igor  
   On 3/28/06, Ali Zaid  [EMAIL PROTECTED] wrote:
   Hay Guys;   Wonderful work!   I wanted to have the AjaxSubmitButton to be as an image, and
 then   Ifound out that AjaxSubmitButton check for the attibute type and   throwand exception if it's not a button, I modifed it and checked
 it   withan image, and it works :), can you please have AjaxSubmitButton   acceptimages too in the final release :), if this is not in the
 plan, I   cansubmit a request.   Thanks a million!   
--   Regards, Ali   -Fight back spam! Download the Blue Frog.
 
http://www.bluesecurity.com/register/s?user=YWxsb2NoaTI5Nzk%3D 
 ---This SF.Net email is sponsored by xPML, a groundbreaking scripting   language
that extends applications into web and mobile media. Attend the   live   webcastand join the prime developer group breaking into this new
 coding   territory!
 http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642   
 ___Wicket-user mailing listWicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
 --   Regards, Ali
  -   Fight back spam! Download the Blue Frog.   
   http://www.bluesecurity.com/register/s?user=YWxsb2NoaTI5Nzk%3D
 --- This 

Re: [Wicket-user] AjaxSubmitButton as an Image?

2006-03-28 Thread Ali Zaid
this is what I found in svn :), anyway, I will check more into it
tonight ;), Thanks Igor!

On 3/28/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 just check it out from svn


 -Igor


 On 3/28/06, Ali Zaid [EMAIL PROTECTED] wrote:
  hummm...
 
  Sorry Igor, I will work on it, tell me, how can I can download the
  whole source code?
 
  On 3/28/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
   you are not up to date all the way.
  
  
   -Igor
  
  
   On 3/28/06, Ali Zaid [EMAIL PROTECTED] wrote:
input type=image
   
  
 id=fullContactPanel_fullContactListView_2_fullContactPanel_fullContactForm_submitAjaxSubmitButton
name=imageField
   src=../../../../../../images/accept.png
onclick=var
  
 wicketAjaxCallMade=wicketSubmitFormById('fullContactPanel_fullContactListView_2_fullContactPanel_fullContactForm',
   
  
 '/Yakhdhoor?wicket:interface=:2:fullContactPanel:fullContactListView:2:fullContactPanel:fullContactForm:submitAjaxSubmitButton:-1:IUnversionedBehaviorListeneramp;wicket:behaviorId=0'
);; return true;; return false;
   
On 3/28/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 i only changed the ajax submit button class. what does your onclick
   handler
 look like?


 -Igor


 On 3/28/06, Ali Zaid  [EMAIL PROTECTED] wrote:
  ok, I only changed the class, what other files where changed?
 
  On 3/28/06, Igor Vaynberg  [EMAIL PROTECTED] wrote:
   no i added something else, what does the generated onclick
 handler
   look
   like?
  
   -Igor
  
  
  
   On 3/28/06, Ali Zaid  [EMAIL PROTECTED]  wrote:
   
   Igor;
  
   if you mean this:
  
   protected void onComponentTag(ComponentTag tag)
   {
   checkComponentTag(tag, input);
  
   final String type =
 tag.getAttributes().getString(type);
   if (!button.equals(type) 
   !image.equals(type)!submit.equals(type))
   {
  
   findMarkupStream().throwMarkupException(
  
 Component
+
   getId() +  must be applied to a tag with 'type'
  
  +
attribute matching 'submit', 'button' or 'image', not ' +
   type + ');
   }
  
   super.onComponentTag(tag);
   }
  
  
   I did test it, and it still submit in a normal way (not ajax),
 is
   there any other class/file that was updated with this one? is
 there
   anything that I should include in the markup?
  
   mine looks like this
  
   input type=image name=imageField
   src=../../../../../../images/accept.png
   wicket:id=submitAjaxSubmitButton/
  
   Regards,
   Ali
  
  
   On 3/28/06, Igor Vaynberg  [EMAIL PROTECTED] wrote:
you wrote that email w/out testing eh :)
   
update and try again
   
-Igor
   
   
   
On 3/28/06, Ali Zaid  [EMAIL PROTECTED]  wrote:

Igor;
   
I did give it a try, and it works as I said, it submit the
 form in
   a
normal way not though Ajax, so page do refresh.
   
Regards, Ali
   
On 3/28/06, Igor Vaynberg  [EMAIL PROTECTED] wrote:
 i tweaked it and it now should work with button/image/submit

 give it a try.

 -Igor



 On 3/28/06, Ali Zaid  [EMAIL PROTECTED] wrote:
  
 Igor;

 My mistake, I just checked it again, and I made a fast
 judgment,
 Sorry, it seems image doesn't work with Ajax :(, it submit
 the
   form
 in
 a normal way, unless you have found work around.

 I'm really sorry for this mistake. I will recheck again and
   update
  you. again, Really sorry.

 Regards, Ali

 On 3/28/06, Igor Vaynberg  [EMAIL PROTECTED]  wrote:
  done.
 
   -Igor
 
 
 
  On 3/28/06, Ali Zaid  [EMAIL PROTECTED] wrote:
  
   Hay Guys;
 
  Wonderful work!
 
  I wanted to have the AjaxSubmitButton to be as an image,
 and
   then
 I
  found out that AjaxSubmitButton check for the attibute
 type
   and
 throw
  and exception if it's not a button, I modifed it and
 checked
   it
 with
  an image, and it works :), can you please have
   AjaxSubmitButton
 accept
  images too in the final release :), if this is not in the
   plan, I
 can
  submit a request.
 
  Thanks a million!
 
  --
   Regards, Ali
   -
  Fight back spam! Download the Blue Frog.
 

   
  

  
 http://www.bluesecurity.com/register/s?user=YWxsb2NoaTI5Nzk%3D
 
 
 
  
   

Re: [Wicket-user] problem with session invalidation and back button

2006-03-28 Thread Johan Compagner
no because this is an Page expired session. Nothing gets created because if you press a submit button on a page.Then that page must be there. Must be targetable. So you get an page expired page.What you could do is set youre default expired page:
void setPageExpiredErrorPage(final Class pageExpiredErrorPage);On 3/28/06, Jaime De La Jara [EMAIL PROTECTED]
 wrote:Not exactly, when I'm in the login page I press the back button and  return to the home page (that seems ok since it was the last page),  then in the home page I use a submit button but since the session was  invalidated, wicket can not find info about the form being submitted.  All the problem reduces to this : How can I intercept the requests so I  can check the session status (I reimplemented the  isInstantiationAuthorized(Class componentClass) of the  IAuthorizationStrategy interface to check for authentication info but  it does not work in this case).
Thanks.Jaime.Johan Compagner 
[EMAIL PROTECTED] wrote:
  Let me get it straight first.You where on youre homepagethen you click on somethingwhere you invalidate the page and redirect to a login page.
Then on that login page you go back to yo
 ure
 homepageand you expect the homepage to be there?  You invalidated the session and all its pages. So you can't go back.If you want this behaviour then just don't invalidate the session. But clear you login info.
johan  On 3/27/06, Jaime De La Jara 
[EMAIL PROTECTED] wrote:  
Hi, I have included a close session link  in the home page of my application (in one of the constructors), and in  the onClick method of the link I invalidate the session and throw a  RestartResponseException to the login page, but after I close the  session using the link and press the back button in the login page I  got the home page as it should be, but when I press a submit buttom in  the hom
 e page,
 I get a WicketRuntimeException, since the form component is not existant in the page. What can I be doing wrong?.Thanks in advance.
Jaime.New 
  Yahoo! Messenger with Voice. Call regular phones from your PC for low, low rates.

		Yahoo! Messenger with Voice. 
Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.



Re: [Wicket-user] Re: Drag and Drop Tree

2006-03-28 Thread Steve Knight
Right now I am just using the tree in wicket-core. I saw the post about DOJO tree and checked out the examples but the drag and drop functionality seems to be broken. Maybe I'll look into it more.Steve
On 3/28/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
I have no experience with that myself. The working tree you havethere, is that based on _javascript_? Ramnivas is working on a DOJO treeas he says in another current thread on this list. That might be agood dnd starting point too.
I don't know how you guys set it up, but if you let it be backed by aproper tree model such as that old fashioned tree is that is inwicket-core, you get all the extra's like inserting and deleting nodes
with it.EelcoOn 3/28/06, Steve Knight [EMAIL PROTECTED] wrote: Can anyone give me some tips on how to best incorporate the scriptaculous drag and drop functionality into the Wicket Tree component?Is there
 another component that I should use as a guideline? Thanks. Steve On 3/27/06, Steve Knight [EMAIL PROTECTED] wrote:
   Has anyone implemented a Drag and Drop version of the Tree component yet? Right now I have a working tree and I'd like to add the ability to rearrange nodes using drag and drop.I am looking at using
 wicket-contrib-scriptaculous to see if it can be incorporated into the tree component.Steve ---
This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642___
Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user



Re: [Wicket-user] problem with session invalidation and back button

2006-03-28 Thread Jaime De La Jara
But, in the original case it does not show the page expired page, but shows an   exception. I think that I missing something here. I commented the  session.invalidate code and in this case when I resubmit the form, since the form  exists, the authentication code is executed and the login page displayed. Then  how can one invalidate the session and not have trouble with the browser's back  button?.Jaime.no because this is an Page expired session. Nothing gets created because if you press a submit button on a page.Then that page must be there. Must be targetable. So youget an page expired page. What you could do is set youre default expired page: void setPageExpiredErrorPage(final Class pageExpiredErrorPage);On 3/28/06, Jaime De La Jara [EMAIL PROTECTED] wrote:   Not exactly, when I'm in the login page I press the back  button and return to the hom
 e page
 (that seems ok since   it was the last page), then in the home page I use a   submit button but since the session was invalidated,  wicket can not find info about the form being submitted.   All the problem reduces to this : How can I intercept the  requests so I can check the session status (I reimplemented   the isInstantiationAuthorized(Class componentClass) of   the IAuthorizationStrategy interface to check for  authentication info but it does not work in this case).   Thanks.   Jaime.Johan Compagner [EMAIL PROTECTED] wrote:  Let me get it straight first.You where on youre homepagethen you click on somethingwhere you invalidate the page and redirect to a login page.Then on that login page you go back
  to
 youre homepageand you expect the homepage to be there?  You invalidated the session and all its pages. So you can't go back.If you want this behaviour then just don't invalidate the session. But clear you login info.johan  On 3/27/06, Jaime De La Jara [EMAIL PROTECTED] wrote:  Hi, I have included a close session link  in the home page of my application (in one of the constructors), and in  the onClick method of the link I invalidate the session and throw a  RestartResponseException to the login page, but after I close the  session using the link and press the back button in the login page I  got the home page as it should be, but when I press a submit buttom in  t
 he home
 page, I get a WicketRuntimeException, since the form component is not existant in the page. What can I be doing wrong?.Thanks in advance.Jaime.New   Yahoo! Messenger with Voice. Call regular phones from your PC for low, low rates.
		New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.

[Wicket-user] wicket stuff moving to subversion

2006-03-28 Thread Martijn Dashorst
All,We've come to a conclusion. Wicket stuff is moving to subversion. In fact I already have converted the repository once, to see if it would work or not, so I'll convert again, and this time for real.If you have any uncommitted code in your workspaces, *now* is a good time to commit the code. I'll shut down CVS access for all devs on Wicket Stuff as part of the move.
You have until 7pm CET wednessday 28th of March to commit your code. After that, the repository will be shut down and moved to subversion.Martijn-- Wicket 1.2 is coming! Write Ajax applications without touching _javascript_!
-- http://wicketframework.org


Re: [Wicket-user] error message in a panel

2006-03-28 Thread R.A

Hi Igor.

I tried using getSession().error(), but compiled error occurred...

I follow your advice and use the onSubmit method for setting error messages.
Thanks a lot!

R.A
--
View this message in context: 
http://www.nabble.com/error-message-in-a-panel-t1355119.html#a3642064
Sent from the Wicket - User forum at Nabble.com.



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] yui slider enquiry

2006-03-28 Thread Joshua Lim
HiI would like to use the yui slider bar ... is it still experimental?noticed it in the exmaple app (1.2b2 in there under yui, but not exactly shown on the home page)thanks joshua


Re: [Wicket-user] error message in a panel

2006-03-28 Thread Igor Vaynberg
I tried using getSession().error(), but compiled error occurred...
its a relatively new feature that is only in svn head right now. this weekend it should make its way into rc1-Igor


Re: [Wicket-user] error message in a panel

2006-03-28 Thread R.A

Hi Igor.

I see.
Thank you for the information.

Thank you.
R.A
--
View this message in context: 
http://www.nabble.com/error-message-in-a-panel-t1355119.html#a3642943
Sent from the Wicket - User forum at Nabble.com.



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] yui slider enquiry

2006-03-28 Thread Juergen Donnerstag
May be you can have a look at it and tell us whether you think it is
ready or not. And in case you find something to improve, we are more
than happy to receive a patch.

Juergen

On 3/29/06, Joshua Lim [EMAIL PROTECTED] wrote:
 Hi

 I would like to use the yui slider bar ...  is it still experimental?
 noticed it in the exmaple app (1.2b2 in there under yui, but not exactly
 shown on the home page)

 thanks
 joshua







---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] yui slider enquiry

2006-03-28 Thread Joshua Lim
It seems that the slider is loading the *.js in some random order...so YAHOO.js is loaded _after_ dom.js etc...which caused a YAHOO not foundadd(HeaderContributor.forJavaScript(AbstractYuiPanel.class));
I am not sure but I will attempt to get this going since I need this...1/ is there a way to force the order in which which .js file is loaded ... I amtrying to load them manually ... seems too does not gaurantee the order...
add(HeaderContributor.forJavaScript(AbstractYuiPanel.class, YAHOO.js));add(HeaderContributor.forJavaScript(AbstractYuiPanel.class, dom.js));   2/ I tried first to use wicket:head in the 
AbstractYuiPanel.html but it doesn't seem to get added into the sub-panel Slider.any help ? Joshua  On 3/29/06, Juergen Donnerstag
 [EMAIL PROTECTED] wrote:
May be you can have a look at it and tell us whether you think it isready or not. And in case you find something to improve, we are morethan happy to receive a patch.JuergenOn 3/29/06, Joshua Lim 
[EMAIL PROTECTED] wrote: Hi I would like to use the yui slider bar ...is it still experimental? noticed it in the exmaple app (1.2b2 in there under yui, but not exactly
 shown on the home page) thanks joshua---This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] yui slider enquiry

2006-03-28 Thread Eelco Hillenius
Oh yeah. Sorry, but I am still in the process of removing it. I just
can't get it to work properly due to javascript issues/ how YUI was
set up.

If you - or anyone else reading this - are succesful in getting it to
work, please send in a patch and we'll keep the component. Otherwise
I'm afraid I'm too short on time to give it a proper look and the
component will have to go from the extensions project.

Eelco


On 3/28/06, Joshua Lim [EMAIL PROTECTED] wrote:
 Hi

 I would like to use the yui slider bar ...  is it still experimental?
 noticed it in the exmaple app (1.2b2 in there under yui, but not exactly
 shown on the home page)

 thanks
 joshua







---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Newbie using gmap examples

2006-03-28 Thread Iulian Costan
what kind of issues do you have? can you compile/deploy the example application? or do you get any _javascript_ error saying that generated key doesnt match the website? or anything elsesend me more info and I'll be able to help.
/iulianOn 3/28/06, Harper,Cole M - JDC-PPO1-2 [EMAIL PROTECTED] wrote:










I am a Java/Wicket newbie and I would like to use the gmap examples in wicket-stuff. I am having trouble getting the example setup and running in Netbeans 5.0. Could someone lend me a hand in getting me started I would appreciate it.


Thanks







Re: [Wicket-user] yui slider enquiry

2006-03-28 Thread Eelco Hillenius
That was because I used a set to filter double contributions. I
changed this to list to guarantee order and added an additional method
with an index argument to enable further tweaking if needed.

Eelco

On 3/28/06, Joshua Lim [EMAIL PROTECTED] wrote:
 It seems that the slider is loading the *.js in some random order...
 so YAHOO.js is loaded _after_ dom.js etc...which caused a YAHOO not found

 add(HeaderContributor.forJavaScript(AbstractYuiPanel.class));

  I am not sure but I will attempt to get this going since I need this...

 1/ is there a way to force the order in which which .js file is loaded ... I
 am
 trying to load them manually ...  seems too does not gaurantee the order...

  add(HeaderContributor.forJavaScript(AbstractYuiPanel.class, YAHOO.js));
 add(HeaderContributor.forJavaScript(AbstractYuiPanel.class, dom.js));
 


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] yui slider enquiry

2006-03-28 Thread Eelco Hillenius
Erm, actually I'm not there yet. I'll check in more in half an hour.

Eelco

On 3/28/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
 That was because I used a set to filter double contributions. I
 changed this to list to guarantee order and added an additional method
 with an index argument to enable further tweaking if needed.

 Eelco

 On 3/28/06, Joshua Lim [EMAIL PROTECTED] wrote:
  It seems that the slider is loading the *.js in some random order...
  so YAHOO.js is loaded _after_ dom.js etc...which caused a YAHOO not found
 
  add(HeaderContributor.forJavaScript(AbstractYuiPanel.class));
 
   I am not sure but I will attempt to get this going since I need this...
 
  1/ is there a way to force the order in which which .js file is loaded ... I
  am
  trying to load them manually ...  seems too does not gaurantee the order...
 
   add(HeaderContributor.forJavaScript(AbstractYuiPanel.class, YAHOO.js));
  add(HeaderContributor.forJavaScript(AbstractYuiPanel.class, dom.js));
  



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] yui slider enquiry

2006-03-28 Thread Martijn Dashorst
Use a LinkedHashSet to filter out double entries and keep order.MartijnOn 3/29/06, Eelco Hillenius 
[EMAIL PROTECTED] wrote:Erm, actually I'm not there yet. I'll check in more in half an hour.
EelcoOn 3/28/06, Eelco Hillenius [EMAIL PROTECTED] wrote: That was because I used a set to filter double contributions. I changed this to list to guarantee order and added an additional method
 with an index argument to enable further tweaking if needed. Eelco On 3/28/06, Joshua Lim [EMAIL PROTECTED] wrote:  It seems that the slider is loading the *.js in some random order...
  so YAHOO.js is loaded _after_ dom.js etc...which caused a YAHOO not found   add(HeaderContributor.forJavaScript(AbstractYuiPanel.class));  I am not sure but I will attempt to get this going since I need this...
   1/ is there a way to force the order in which which .js file is loaded ... I  am  trying to load them manually ...seems too does not gaurantee the order... 
 add(HeaderContributor.forJavaScript(AbstractYuiPanel.class, YAHOO.js));  add(HeaderContributor.forJavaScript(AbstractYuiPanel.class, dom.js));  
---This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user-- Wicket 1.2 is coming! Write Ajax applications without touching _javascript_!-- 
http://wicketframework.org


Re: [Wicket-user] yui slider enquiry

2006-03-28 Thread Joshua Lim
Ok I added them manually and it now loads ok without _javascript_ errors...so that bit is ok... next I think the imgs/*.png shoud be added into resources...On 3/29/06, 
Eelco Hillenius [EMAIL PROTECTED] wrote:
Erm, actually I'm not there yet. I'll check in more in half an hour.EelcoOn 3/28/06, Eelco Hillenius [EMAIL PROTECTED] wrote: That was because I used a set to filter double contributions. I
 changed this to list to guarantee order and added an additional method with an index argument to enable further tweaking if needed. Eelco On 3/28/06, Joshua Lim 
[EMAIL PROTECTED] wrote:  It seems that the slider is loading the *.js in some random order...  so YAHOO.js is loaded _after_ dom.js etc...which caused a YAHOO not found   add(
HeaderContributor.forJavaScript(AbstractYuiPanel.class));  I am not sure but I will attempt to get this going since I need this...   1/ is there a way to force the order in which which .js file is loaded ... I
  am  trying to load them manually ...seems too does not gaurantee the order...  add(HeaderContributor.forJavaScript(AbstractYuiPanel.class, YAHOO.js));  add(
HeaderContributor.forJavaScript(AbstractYuiPanel.class, dom.js));  ---This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user