Re: [Wicket-user] Palette component question

2006-08-14 Thread Igor Vaynberg
reading javadoc helps :)/**     * @param id     *    component id     * @param model     *    model representing collection of user's selections     * @param choicesModel     *    model representing collection of all available choices
     * @param choiceRenderer     *    render used to render choices     * @param rows     *    number of choices to be visible on the screen with out     *    scrolling     * @param allowOrder
     *    allow user to move selections up and down     */    public Palette(String id, IModel model, IModel choicesModel, IChoiceRenderer choiceRenderer,            int rows, boolean allowOrder)
-Igor
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Palette component question

2006-08-14 Thread drakonis

Thanks. Tried like u said, but the html that is renderer still contains an
input button even if it has no actions. No matter, found this super
wicket-hack:) Browsing the sources turns out that the last parameter in the
constructor is a boolean allowOrder. By setting this to false the last two
buttons for ordering disapear.
I will modify now the component to fit my needs. Thanks for answering.

Johan Compagner wrote:
> 
> ahh ok
> 1> new WebMarkupContainer().setVisible(false)
> 
> 2> i get the idea that you just have to write your own component, this is
> not where pallete is build for (i think)
> 
> johan
> 
> 
> On 8/14/06, drakonis <[EMAIL PROTECTED]> wrote:
>>
>>
>> 10x for the answer, but
>> 1. i actually tried returning a label before i posted got the error:
>> Expected close tag for '> class
>> button up">' Possible attempt to embed component(s) ' up.gif ' in the
>> body
>> of this component which discards its body.
>>
>> I can't really understand what it requires.
>>
>> 2.Well the thing is the palette would contain some items, and the
>> available
>> items that the user can choose would depend of the items the user has
>> already chosen. That's why i need to submit at every new inserted item,
>> to
>> present the new list of items the user is allowed to chose from.
>>
>> I guess it's not a quick fix and the answer would be to create my own
>> component based on the sources of the palette.
>>
>>
>> Johan Compagner wrote:
>> >
>> > 1> try an label that is not visible or something like that
>> >
>> > 2> why would you submit everytime one move? I thought the pallete
>> > component
>> > was there for easy configuring the complete list and the submit.
>> >
>> > johan
>> >
>> >
>> > On 8/14/06, drakonis <[EMAIL PROTECTED]> wrote:
>> >>
>> >>
>> >> Hi everyone, I'm a new wicket user and curently trying out some
>> examples.
>> >> Stumbled upon the Palette component which i want to integrate in my
>> >> project.
>> >> Problem is i need to make it work a little different.
>> >> For starters i would like just to have only the move < , > buttons,
>> not
>> >> the
>> >> other two. I will actualy need to have a 3rd which is gonna behave
>> >> diferently - would replace a selection with another.
>> >>
>> >> 1.So i tried to override
>> >> public Component newUpComponent() { }
>> >> but i just don't know what component to return. Null doesn't work for
>> not
>> >> showing the upComponent.
>> >>
>> >> 2. Can it be done so when i click on the move > button i would submit
>> the
>> >> form or something so as to be able to modify the model on the
>> available
>> >> selections?
>> >>
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/Palette-component-question-tf2102732.html#a5794843
>> >> Sent from the Wicket - User forum at Nabble.com.
>> >>
>> >>
>> >>
>> -
>> >> Using Tomcat but need to do more? Need to support web services,
>> security?
>> >> Get stuff done quickly with pre-integrated technology to make your job
>> >> easier
>> >> Download IBM WebSphere Application Server v.1.0.1 based on Apache
>> >> Geronimo
>> >>
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>> >> ___
>> >> Wicket-user mailing list
>> >> Wicket-user@lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinfo/wicket-user
>> >>
>> >
>> >
>> -
>> > Using Tomcat but need to do more? Need to support web services,
>> security?
>> > Get stuff done quickly with pre-integrated technology to make your job
>> > easier
>> > Download IBM WebSphere Application Server v.1.0.1 based on Apache
>> Geronimo
>> >
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>> > ___
>> > Wicket-user mailing list
>> > Wicket-user@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/wicket-user
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Palette-component-question-tf2102732.html#a5796562
>> Sent from the Wicket - User forum at Nabble.com.
>>
>>
>> -
>> Using Tomcat but need to do more? Need to support web services, security?
>> Get stuff done quickly with pre-integrated technology to make your job
>> easier
>> Download IBM WebSphere Application Server v.1.0.1 based on Apache
>> Geronimo
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>> ___
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
> 
> -
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrate

Re: [Wicket-user] Palette component question

2006-08-14 Thread Johan Compagner
ahh ok1> new WebMarkupContainer().setVisible(false)2> i get the idea that you just have to write your own component, this is not where pallete is build for (i think)johan
On 8/14/06, drakonis <[EMAIL PROTECTED]> wrote:
10x for the answer, but1. i actually tried returning a label before i posted got the error:Expected close tag for 'button up">' Possible attempt to embed component(s) ' 
up.gif ' in the bodyof this component which discards its body.I can't really understand what it requires.2.Well the thing is the palette would contain some items, and the availableitems that the user can choose would depend of the items the user has
already chosen. That's why i need to submit at every new inserted item, topresent the new list of items the user is allowed to chose from.I guess it's not a quick fix and the answer would be to create my own
component based on the sources of the palette.Johan Compagner wrote:>> 1> try an label that is not visible or something like that>> 2> why would you submit everytime one move? I thought the pallete
> component> was there for easy configuring the complete list and the submit.>> johan>>> On 8/14/06, drakonis <[EMAIL PROTECTED]
> wrote:>> Hi everyone, I'm a new wicket user and curently trying out some examples.>> Stumbled upon the Palette component which i want to integrate in my>> project.
>> Problem is i need to make it work a little different.>> For starters i would like just to have only the move < , > buttons, not>> the>> other two. I will actualy need to have a 3rd which is gonna behave
>> diferently - would replace a selection with another. 1.So i tried to override>> public Component newUpComponent() { }>> but i just don't know what component to return. Null doesn't work for not
>> showing the upComponent. 2. Can it be done so when i click on the move > button i would submit the>> form or something so as to be able to modify the model on the available
>> selections?>> -->> View this message in context:>> http://www.nabble.com/Palette-component-question-tf2102732.html#a5794843
>> Sent from the Wicket - User forum at Nabble.com.>> ->> Using Tomcat but need to do more? Need to support web services, security?
>> Get stuff done quickly with pre-integrated technology to make your job>> easier>> Download IBM WebSphere Application Server v.1.0.1 based on Apache>> Geronimo>> 
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>> ___>> Wicket-user mailing list>> 
Wicket-user@lists.sourceforge.net>> https://lists.sourceforge.net/lists/listinfo/wicket-user -
> Using Tomcat but need to do more? Need to support web services, security?> Get stuff done quickly with pre-integrated technology to make your job> easier> Download IBM WebSphere Application Server 
v.1.0.1 based on Apache Geronimo> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___> Wicket-user mailing list> Wicket-user@lists.sourceforge.net> 
https://lists.sourceforge.net/lists/listinfo/wicket-user>>--View this message in context: http://www.nabble.com/Palette-component-question-tf2102732.html#a5796562
Sent from the Wicket - User forum at Nabble.com.-Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Palette component question

2006-08-14 Thread drakonis

10x for the answer, but 
1. i actually tried returning a label before i posted got the error:
Expected close tag for '' Possible attempt to embed component(s) ' up.gif ' in the body
of this component which discards its body.

I can't really understand what it requires.

2.Well the thing is the palette would contain some items, and the available
items that the user can choose would depend of the items the user has
already chosen. That's why i need to submit at every new inserted item, to
present the new list of items the user is allowed to chose from.

I guess it's not a quick fix and the answer would be to create my own
component based on the sources of the palette.


Johan Compagner wrote:
> 
> 1> try an label that is not visible or something like that
> 
> 2> why would you submit everytime one move? I thought the pallete
> component
> was there for easy configuring the complete list and the submit.
> 
> johan
> 
> 
> On 8/14/06, drakonis <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hi everyone, I'm a new wicket user and curently trying out some examples.
>> Stumbled upon the Palette component which i want to integrate in my
>> project.
>> Problem is i need to make it work a little different.
>> For starters i would like just to have only the move < , > buttons, not
>> the
>> other two. I will actualy need to have a 3rd which is gonna behave
>> diferently - would replace a selection with another.
>>
>> 1.So i tried to override
>> public Component newUpComponent() { }
>> but i just don't know what component to return. Null doesn't work for not
>> showing the upComponent.
>>
>> 2. Can it be done so when i click on the move > button i would submit the
>> form or something so as to be able to modify the model on the available
>> selections?
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Palette-component-question-tf2102732.html#a5794843
>> Sent from the Wicket - User forum at Nabble.com.
>>
>>
>> -
>> Using Tomcat but need to do more? Need to support web services, security?
>> Get stuff done quickly with pre-integrated technology to make your job
>> easier
>> Download IBM WebSphere Application Server v.1.0.1 based on Apache
>> Geronimo
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>> ___
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
> 
> -
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Palette-component-question-tf2102732.html#a5796562
Sent from the Wicket - User forum at Nabble.com.


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


Re: [Wicket-user] Palette component question

2006-08-14 Thread Johan Compagner
1> try an label that is not visible or something like that2> why would you submit everytime one move? I thought the pallete component was there for easy configuring the complete list and the submit.johan
On 8/14/06, drakonis <[EMAIL PROTECTED]> wrote:
Hi everyone, I'm a new wicket user and curently trying out some examples.Stumbled upon the Palette component which i want to integrate in my project.Problem is i need to make it work a little different.For starters i would like just to have only the move < , > buttons, not the
other two. I will actualy need to have a 3rd which is gonna behavediferently - would replace a selection with another.1.So i tried to overridepublic Component newUpComponent() { }but i just don't know what component to return. Null doesn't work for not
showing the upComponent.2. Can it be done so when i click on the move > button i would submit theform or something so as to be able to modify the model on the availableselections?--View this message in context: 
http://www.nabble.com/Palette-component-question-tf2102732.html#a5794843Sent from the Wicket - User forum at 
Nabble.com.-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Palette component question

2006-08-14 Thread drakonis

Hi everyone, I'm a new wicket user and curently trying out some examples.
Stumbled upon the Palette component which i want to integrate in my project.
Problem is i need to make it work a little different. 
For starters i would like just to have only the move < , > buttons, not the
other two. I will actualy need to have a 3rd which is gonna behave
diferently - would replace a selection with another.

1.So i tried to override 
public Component newUpComponent() { }
but i just don't know what component to return. Null doesn't work for not
showing the upComponent.

2. Can it be done so when i click on the move > button i would submit the
form or something so as to be able to modify the model on the available
selections?


-- 
View this message in context: 
http://www.nabble.com/Palette-component-question-tf2102732.html#a5794843
Sent from the Wicket - User forum at Nabble.com.


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